Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a6536b88
authored
Feb 04, 2025
by
pbbm2
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan user_desa
1 parent
18e68544
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
opensipkd/base/__init__.py
opensipkd/models/user_area.py
opensipkd/base/__init__.py
View file @
a6536b8
...
...
@@ -141,6 +141,8 @@ def has_modules_(module_name, context=None):
def
_get_params
(
request
,
params
,
default
=
None
,
settings
=
None
,
context
=
None
):
log
.
debug
(
"_get_params"
)
log
.
debug
(
f
"{params}, {default}"
)
return
get_params
(
params
,
default
,
settings
)
...
...
@@ -158,7 +160,7 @@ def add_global(event):
event
[
'split'
]
=
split
event
[
'allow_register'
]
=
allow_register
event
[
'change_unit'
]
=
change_unit
event
[
'get_params'
]
=
_
get_params
event
[
'get_params'
]
=
get_params
event
[
'get_urls'
]
=
get_urls
event
[
'get_csrf_token'
]
=
get_csrf_token
# event['get_params'] = get_params
...
...
@@ -180,6 +182,7 @@ def get_params(params, alternate=None, settings=None):
contoh penggunaan:
get_params('devel', False)
"""
log
.
debug
(
"get_params"
)
if
not
settings
:
settings
=
get_settings
()
result
=
settings
and
params
in
settings
and
\
...
...
opensipkd/models/user_area.py
View file @
a6536b8
...
...
@@ -44,5 +44,5 @@ class UserArea(DefaultModel, Base):
return
cls
.
query
()
.
filter_by
(
user_id
=
user_id
)
.
all
()
@classmethod
def
user_
are
a
(
cls
,
user_id
):
def
user_
des
a
(
cls
,
user_id
):
return
cls
.
query
()
.
filter
(
cls
.
user_id
==
user_id
)
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment