mirror of
https://github.com/ail-project/ail-framework.git
synced 2025-01-31 14:36:15 +00:00
chg: [paste_submit UI] add debug
This commit is contained in:
parent
17af705231
commit
601ea8f13e
1 changed files with 4 additions and 0 deletions
|
@ -310,6 +310,7 @@ def submit():
|
||||||
if ltags or ltagsgalaxies:
|
if ltags or ltagsgalaxies:
|
||||||
if not addTagsVerification(ltags, ltagsgalaxies):
|
if not addTagsVerification(ltags, ltagsgalaxies):
|
||||||
content = 'INVALID TAGS'
|
content = 'INVALID TAGS'
|
||||||
|
print(content)
|
||||||
return content, 400
|
return content, 400
|
||||||
|
|
||||||
# add submitted tags
|
# add submitted tags
|
||||||
|
@ -358,6 +359,7 @@ def submit():
|
||||||
|
|
||||||
else:
|
else:
|
||||||
content = 'wrong file type, allowed_extensions: sh, pdf, zip, gz, tar.gz or remove the extension'
|
content = 'wrong file type, allowed_extensions: sh, pdf, zip, gz, tar.gz or remove the extension'
|
||||||
|
print(content)
|
||||||
return content, 400
|
return content, 400
|
||||||
|
|
||||||
|
|
||||||
|
@ -380,9 +382,11 @@ def submit():
|
||||||
|
|
||||||
else:
|
else:
|
||||||
content = 'size error'
|
content = 'size error'
|
||||||
|
print(content)
|
||||||
return content, 400
|
return content, 400
|
||||||
|
|
||||||
content = 'submit aborded'
|
content = 'submit aborded'
|
||||||
|
print(content)
|
||||||
return content, 400
|
return content, 400
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue