Skip to content

Commit

Permalink
Fix : Patient export duration check (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaileshaanand authored Nov 13, 2021
1 parent 662bd9e commit bfb2e5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions care/facility/api/viewsets/patient.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ def list(self, request, *args, **kwargs):
slice_obj = temp.form.cleaned_data.get(field)
if slice_obj:
days_difference = (
temp.form.cleaned_data.get("created_date").stop
- temp.form.cleaned_data.get("created_date").start
temp.form.cleaned_data.get(field).stop
- temp.form.cleaned_data.get(field).start
).days
if days_difference <= self.CSV_EXPORT_LIMIT:
within_limits = True
Expand Down

0 comments on commit bfb2e5a

Please sign in to comment.