Skip to content

Commit 3de1856

Browse files
Merge pull request #134 from jverswijver/small_bugfix
fix bug with oidc get records
2 parents 6e3dbc9 + 2b5c14f commit 3de1856

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

pharus/server.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -698,17 +698,14 @@ def record(
698698
record_header, table_tuples, total_count = _DJConnector._fetch_records(
699699
query=dj_table,
700700
**{
701-
k: (
702-
int(v)
703-
if k in ("limit", "page")
704-
else (
705-
v.split(",")
706-
if k == "order"
707-
else loads(b64decode(v.encode("utf-8")).decode("utf-8"))
708-
)
709-
)
701+
k: int(v) for k, v in request.args.items() if k in ("limit", "page")
702+
},
703+
**{
704+
k: loads(b64decode(v.encode("utf-8")).decode("utf-8"))
710705
for k, v in request.args.items()
706+
if k == "restriction"
711707
},
708+
**{k: v.split(",") for k, v in request.args.items() if k == "order"},
712709
)
713710
return dict(
714711
recordHeader=record_header, records=table_tuples, totalCount=total_count

0 commit comments

Comments
 (0)