Skip to content
Snippets Groups Projects
Commit 1f2de78f authored by Carlos Vega's avatar Carlos Vega
Browse files

fixed duplicates in exceeded visits list. See issue #249

parent 57b891e2
No related branches found
No related tags found
1 merge request!170Bug/249 duplicated exceeded visists
Pipeline #6697 passed
......@@ -247,7 +247,7 @@ def get_exceeded_visits(user):
Q(visit_number__gt=1) | Q(appointment__status=Appointment.APPOINTMENT_STATUS_FINISHED)).filter(
# visits that have scheduled appointments should be excluded
~Q(appointment__status=Appointment.APPOINTMENT_STATUS_SCHEDULED)).order_by(
'datetime_begin')
'datetime_begin').distinct()
def get_missing_redcap_subjects(user, include_ignored=True):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment