Skip to content

Commit

Permalink
fix(cohort): cast counts as integers
Browse files Browse the repository at this point in the history
  • Loading branch information
Hicham committed Jun 5, 2024
1 parent 733f1e6 commit 00533cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cohort/services/feasibility_study.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def generate_report_content(self, perimeters: QuerySet, counts_per_perimeter: di

for p in perimeters:
p_id = p.cohort_id
patients_count = bound_number(n=counts_per_perimeter.get(p_id, 0))
patients_count = bound_number(n=int(counts_per_perimeter.get(p_id, 0)))
json_content[p_id] = patients_count
html_content += f"""<li class="item">
<input type="checkbox" id="p{p_id}">
Expand Down

0 comments on commit 00533cf

Please sign in to comment.