Skip to content

Commit

Permalink
Assign output of pacs_file.delete() to variable
Browse files Browse the repository at this point in the history
Makes the output cleaner if you copy-paste the command into a REPL
  • Loading branch information
jennydaman committed Mar 26, 2024
1 parent 3db889c commit e99c656
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/clear_pacsfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e99c656

Please sign in to comment.