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 18e68544
authored
Feb 04, 2025
by
aa.gusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
penambahan user area
1 parent
dadf7be9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
opensipkd/models/user_area.py
opensipkd/models/user_area.py
View file @
18e6854
...
...
@@ -42,3 +42,7 @@ class UserArea(DefaultModel, Base):
@classmethod
def
get_by_user_id
(
cls
,
user_id
):
return
cls
.
query
()
.
filter_by
(
user_id
=
user_id
)
.
all
()
@classmethod
def
user_area
(
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