Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding consistent ordering to visit export #412

Merged
merged 1 commit into from
Oct 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading