From 85487efee3edbfd13279f59e74c97383dc55b9fd Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Thu, 14 Sep 2023 14:24:36 +0300 Subject: [PATCH] debug mogrify --- core/views/uploads.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/views/uploads.py b/core/views/uploads.py index 9fd9d44..28948c6 100644 --- a/core/views/uploads.py +++ b/core/views/uploads.py @@ -423,6 +423,8 @@ def expofilerename(request, filepath): ) message = f'! - ROTATE - Success: rotated this file {filename}.' + msgdata print(message) + DataIssue.objects.create(parser="mogrify", message=message) + if rot.returncode != 0: msgdata = ( "Ask a nerd to fix this.\n\n" @@ -437,6 +439,7 @@ def expofilerename(request, filepath): + msgdata ) print(message) + DataIssue.objects.create(parser="mogrify", message=message) return simple_get()