Skip to content

Commit

Permalink
Clean logic
Browse files Browse the repository at this point in the history
  • Loading branch information
asteel-gsa committed Feb 5, 2025
1 parent 552d0df commit a5eb9dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/support/management/commands/delete_stale_backups.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def handle(self, *args, **options):
days = options["days"]
delete = options["delete"]

if days == 0 or days < 14:
print("Days cannot be equal to 0 or less than 14 to prevent up-to-date backups from being deleted. Exiting...")
if days < 14:
print("Days cannot less than 14 to prevent up-to-date backups from being deleted. Exiting...")
sys.exit(1)

s3_client = boto3.client(
Expand Down

0 comments on commit a5eb9dd

Please sign in to comment.