Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
irul
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e5c783ac
authored
Sep 19, 2024
by
aa.gusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan parameter
1 parent
3dd8a11e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
opensipkd/base/views/base_views.py
opensipkd/base/views/base_views.py
View file @
e5c783a
...
...
@@ -426,10 +426,10 @@ class BaseView(object):
}
return
csv_response
(
self
.
req
,
value
,
filename
)
def
list_join
(
self
,
query
):
def
list_join
(
self
,
query
,
**
kwargs
):
return
query
def
list_filter
(
self
,
query
):
def
list_filter
(
self
,
query
,
**
kwargs
):
return
query
def
get_list
(
self
,
**
kwargs
):
...
...
@@ -470,12 +470,12 @@ class BaseView(object):
columns
=
self
.
columns
query
=
self
.
db_session
.
query
()
.
select_from
(
self
.
table
)
query
=
self
.
list_join
(
query
)
query
=
self
.
list_join
(
query
,
**
kwargs
)
if
self
.
req
.
user
and
self
.
req
.
user
.
company_id
and
hasattr
(
self
.
table
,
"company_id"
):
query
=
query
.
filter
(
self
.
table
.
company_id
==
self
.
req
.
user
.
company_id
)
query
=
self
.
list_filter
(
query
)
query
=
self
.
list_filter
(
query
,
**
kwargs
)
row_table
=
DataTables
(
self
.
req
.
GET
,
query
,
columns
)
result
=
row_table
.
output_result
()
data
=
result
and
"data"
in
result
and
result
[
"data"
]
or
{}
...
...
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