Skip to content

Commit

Permalink
Fix removing directory in delete script
Browse files Browse the repository at this point in the history
  • Loading branch information
tekktrik committed Jan 30, 2024
1 parent 4a8c865 commit 4eef336
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/post_graphql.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
parent_card_dir = base_dir / "flask_app/static/img/gh_cards/"
old_card_dir = parent_card_dir / last_datetime_str

old_resp_file.unlink(missing_ok=True)
for card in old_card_dir.glob("*"):
card.unlink(missing_ok=True)
old_card_dir.unlink(missing_ok=True)
old_resp_file.unlink(missing_ok=True)
old_card_dir.rmdir()

0 comments on commit 4eef336

Please sign in to comment.