Skip to content

Commit

Permalink
Merge pull request #412 from dimagi/ce/visit-export-order
Browse files Browse the repository at this point in the history
adding consistent ordering to visit export
  • Loading branch information
calellowitz authored Oct 9, 2024
2 parents 48fa8b2 + 43e9109 commit c8549a7
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 c8549a7

Please sign in to comment.