From e99c656ff76fa70d15b921318543fde7f74984c2 Mon Sep 17 00:00:00 2001 From: Jennings Zhang Date: Mon, 25 Mar 2024 23:48:22 -0400 Subject: [PATCH] Assign output of pacs_file.delete() to variable Makes the output cleaner if you copy-paste the command into a REPL --- scripts/clear_pacsfiles.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/clear_pacsfiles.sh b/scripts/clear_pacsfiles.sh index e7fb20d..6bb8f26 100755 --- a/scripts/clear_pacsfiles.sh +++ b/scripts/clear_pacsfiles.sh @@ -12,12 +12,12 @@ from tqdm import tqdm with tqdm(PACSFile.objects.all()) as pbar: for pacs_file in pbar: - pacs_file.delete() + _ = pacs_file.delete() storage = connect_storage(settings) with tqdm(storage.ls("SERVICES/PACS")) as pbar: for f in pbar: - storage.delete_obj(f) + _ = storage.delete_obj(f) ' docker compose up -d