Skip to content

Commit

Permalink
order export rows
Browse files Browse the repository at this point in the history
  • Loading branch information
calellowitz committed Oct 9, 2024
1 parent f14f5de commit 43e9109
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions commcare_connect/opportunity/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def export_user_visit_data(
user_visits = user_visits.filter(visit_date__gte=date_range.get_cutoff_date())
if status and "all" not in status:
user_visits = user_visits.filter(status__in=status)
user_visits = user_visits.order_by("visit_date")

table = UserVisitTable(user_visits)
exclude_columns = ("visit_date", "form_json", "details", "justification")
Expand Down

0 comments on commit 43e9109

Please sign in to comment.