Skip to content

Commit

Permalink
WIP: fixing CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Filienko committed Dec 8, 2023
1 parent 5faecf2 commit 8f9be71
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion isacc_messaging/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ def update_patient_params():
for json_patient in next_in_bundle(all_patients):
patient = Patient(json_patient)
patient.active = True
audit_entry(
f"Patient ID{patient.id}",
level='info'
)
patient.persist()


Expand All @@ -225,7 +229,7 @@ def deactivate_patient(patient_id):
active_patients = Patient.all_patients()
for json_patient in next_in_bundle(active_patients):
patient = Patient(json_patient)
if patient.id == 52:
if patient.id == "52":
patient.active = False
patient.persist()
audit_entry(
Expand Down

0 comments on commit 8f9be71

Please sign in to comment.