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 dd4839ce
authored
Oct 01, 2024
by
Ari Agung Prasetiyo
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'latest' of
https://git.opensipkd.com/aa.gusti/opensipkd-base
into latest
2 parents
aefd9d12
55152ca0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
opensipkd/models/user_area.py
opensipkd/models/user_area.py
View file @
dd4839c
...
...
@@ -23,6 +23,9 @@ class UserArea(DefaultModel, Base):
if
user
and
user
.
user_id
:
return
True
if
not
desa_id
and
not
desa_kd
:
raise
Exception
(
"parameter desa_id atau desa_kd wajib dikirim"
)
if
desa_id
:
rs
=
cls
.
query
()
.
filter
(
cls
.
user_id
==
user_id
,
cls
.
desa_id
==
desa_id
)
if
rs
and
rs
.
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