From 1effc10e3f2364bab59a179bb4270d962e402808 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Thu, 14 Sep 2023 15:08:10 +0300 Subject: [PATCH] tidyup of image rotate --- core/views/uploads.py | 2 +- parsers/scans.py | 3 ++- templates/renameform.html | 5 +++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/core/views/uploads.py b/core/views/uploads.py index 28948c6..dd9f60d 100644 --- a/core/views/uploads.py +++ b/core/views/uploads.py @@ -423,7 +423,7 @@ def expofilerename(request, filepath): ) message = f'! - ROTATE - Success: rotated this file {filename}.' + msgdata print(message) - DataIssue.objects.create(parser="mogrify", message=message) + # DataIssue.objects.create(parser="mogrify", message=message) if rot.returncode != 0: msgdata = ( diff --git a/parsers/scans.py b/parsers/scans.py index 9929209..4cfb7ee 100644 --- a/parsers/scans.py +++ b/parsers/scans.py @@ -36,9 +36,10 @@ def load_all_scans(): SingleScan.objects.all().delete() Wallet.objects.all().delete() - print(" - deleting all Wallet and SingleScan objects") + print(" - deleting all Wallet and SingleScan objects, and resize error messages") DataIssue.objects.filter(parser="scans").delete() DataIssue.objects.filter(parser="wallets").delete() + DataIssue.objects.filter(parser="mogrify").delete() # These are valid old file types to be visible, they are not necessarily allowed to be uploaded to a new wallet. valids = [ diff --git a/templates/renameform.html b/templates/renameform.html index 1217968..f543057 100644 --- a/templates/renameform.html +++ b/templates/renameform.html @@ -24,6 +24,7 @@



-
{% csrf_token %} -