Skip to content

Commit

Permalink
Update delete function
Browse files Browse the repository at this point in the history
  • Loading branch information
Francis Odhiambo Otieno authored and Francis Odhiambo Otieno committed Feb 2, 2024
1 parent 2b5e47c commit 8714e08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cleaner/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ def main(resource_type, parameter, value, batch_size, expunge, cascade, log_leve
+ "&_count="
+ str(batch_size)
)
delete_resources(resource_url, resource_type)
if not cascade:
delete_resources(resource_url, resource_type)
if expunge:
expunge_url = config.fhir_base_url + "/" + resource_type + "/$expunge"
expunge_resources(expunge_url)
Expand Down

0 comments on commit 8714e08

Please sign in to comment.