Skip to content
Snippets Groups Projects
Commit 82298600 authored by piotr.gawron's avatar piotr.gawron
Browse files

fix virus inconclusive data update

parent f2e8c5e5
No related branches found
No related tags found
1 merge request!246fix virus inconclusive data update
Pipeline #25473 passed
...@@ -198,7 +198,7 @@ class RedcapConnector(object): ...@@ -198,7 +198,7 @@ class RedcapConnector(object):
smasch_appointment.mark_as_finished() smasch_appointment.mark_as_finished()
smasch_appointment.visit.is_finished = True smasch_appointment.visit.is_finished = True
smasch_appointment.visit.save() smasch_appointment.visit.save()
if visit.virus is not None: if visit.virus is not None or visit.virus_inconclusive:
if visit.visit_number == 1 and subject.virus_test_1 != visit.virus: if visit.visit_number == 1 and subject.virus_test_1 != visit.virus:
subject.virus_test_1 = visit.virus subject.virus_test_1 = visit.virus
subject.virus_test_1_updated = datetime.datetime.now() subject.virus_test_1_updated = datetime.datetime.now()
......
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