From 601ea8f13e4d972a17d86af7cf75b6f469a1f7af Mon Sep 17 00:00:00 2001 From: Terrtia Date: Wed, 5 Jun 2019 16:31:35 +0200 Subject: [PATCH] chg: [paste_submit UI] add debug --- var/www/modules/PasteSubmit/Flask_PasteSubmit.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/www/modules/PasteSubmit/Flask_PasteSubmit.py b/var/www/modules/PasteSubmit/Flask_PasteSubmit.py index 68cd75ae..51b5f2b2 100644 --- a/var/www/modules/PasteSubmit/Flask_PasteSubmit.py +++ b/var/www/modules/PasteSubmit/Flask_PasteSubmit.py @@ -310,6 +310,7 @@ def submit(): if ltags or ltagsgalaxies: if not addTagsVerification(ltags, ltagsgalaxies): content = 'INVALID TAGS' + print(content) return content, 400 # add submitted tags @@ -358,6 +359,7 @@ def submit(): else: content = 'wrong file type, allowed_extensions: sh, pdf, zip, gz, tar.gz or remove the extension' + print(content) return content, 400 @@ -380,9 +382,11 @@ def submit(): else: content = 'size error' + print(content) return content, 400 content = 'submit aborded' + print(content) return content, 400