Skip to content

Commit

Permalink
must cast query string param to int!
Browse files Browse the repository at this point in the history
  • Loading branch information
pbugni committed Oct 2, 2024
1 parent a11cb42 commit fe5a478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion portal/views/patients.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def page_of_patients():
ids = OrgTree().here_and_below_id(org.id)
viewable_orgs.update(ids)

research_study_id = request.args.get("research_study_id", 0)
research_study_id = int(request.args.get("research_study_id", 0))
# Reduce viewable orgs by filter preferences
filtered_orgs = org_preference_filter(user=user, research_study_id=research_study_id)
if filtered_orgs:
Expand Down

0 comments on commit fe5a478

Please sign in to comment.