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 9d96bad4
authored
Aug 08, 2022
by
aagusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan models api
1 parent
5bcb5039
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
opensipkd/detable/templates/detable.pt
opensipkd/models/views/__init__.py
opensipkd/detable/templates/detable.pt
View file @
9d96bad
...
...
@@ -64,7 +64,7 @@
return 'Archived';
}
for (co in columns) {
for (
let
co in columns) {
console.log(columns[co]);
if (columns[co].checkbox === true) {
columns[co].className = "text-center";
...
...
opensipkd/models/views/__init__.py
View file @
9d96bad
...
...
@@ -75,11 +75,11 @@ class BaseApiTableFilter(object):
offset
=
(
page
-
1
)
*
page_size
qry
=
qry
.
offset
(
offset
)
.
limit
(
page_size
)
return
qry
,
page
,
total_page
return
qry
,
page
,
page_size
,
total_page
def
get_filter
(
self
):
qry
,
page
,
total_page
=
self
.
get_data
()
qry
,
page
,
page_size
,
total_page
=
self
.
get_data
()
row
=
qry
.
first
()
if
not
row
:
raise
JsonRpcDataNotFoundError
...
...
@@ -89,4 +89,5 @@ class BaseApiTableFilter(object):
return
dict
(
record
=
result
,
total_page
=
total_page
,
page
=
page
)
page
=
page
,
page_size
=
page_size
)
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