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 c1adb9bc
authored
Jul 06, 2026
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add pagination metadata to departemen data response
1 parent
d7c1d20a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
opensipkd/base/views/departemen.py
opensipkd/base/views/departemen.py
View file @
c1adb9b
...
@@ -184,7 +184,9 @@ class Views(BaseView):
...
@@ -184,7 +184,9 @@ class Views(BaseView):
"status"
:
d
.
status
,
"status"
:
d
.
status
,
"level_id"
:
d
.
lvl
,
"parent_id"
:
d
.
parent_id
}
for
d
in
query
]
"level_id"
:
d
.
lvl
,
"parent_id"
:
d
.
parent_id
}
for
d
in
query
]
return
{
return
{
"draw"
:
"1"
,
"recordsTotal"
:
len
(
data
),
"recordsFiltered"
:
len
(
data
),
"data"
:
data
}
"data"
:
data
}
else
:
else
:
return
self
.
next_act
()
return
self
.
next_act
()
...
...
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