From 62963d71deb8ba4a6376be854ca4d9213bb16835 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Thu, 6 Aug 2020 19:13:36 +0200 Subject: [PATCH] Fix incorrect indentation --- pgweb/core/management/commands/cleanup_old_records.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pgweb/core/management/commands/cleanup_old_records.py b/pgweb/core/management/commands/cleanup_old_records.py index 08a974bf..f12799f5 100644 --- a/pgweb/core/management/commands/cleanup_old_records.py +++ b/pgweb/core/management/commands/cleanup_old_records.py @@ -28,9 +28,9 @@ class Command(BaseCommand): curs = connection.cursor() curs.execute("SELECT pg_try_advisory_lock(2896719)") if not curs.fetchall()[0][0]: - print("Failed to get advisory lock, existing cleanup_old_records process stuck?") - sys.exit(1) + print("Failed to get advisory lock, existing cleanup_old_records process stuck?") + sys.exit(1) # Clean up old email change tokens with transaction.atomic(): - EmailChangeToken.objects.filter(sentat__lt=datetime.now() - timedelta(hours=24)).delete() + EmailChangeToken.objects.filter(sentat__lt=datetime.now() - timedelta(hours=24)).delete() -- 2.39.5