Fuck that. Apparently I can't set put args in this order but too lazy to reorganize

This commit is contained in:
Dominik V. Salonen 2018-03-20 22:22:09 +01:00
parent d2acfd264b
commit 01b19333ba
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import time
# Some messages pass a True or False as should_print depending on config variables
# Default to true, but return doing nothing if they pass a False.
def print_log(source="None", message, should_print=True):
def print_log(source, message, should_print=True):
if should_print == False:
return

2
run.py
View File

@ -106,7 +106,7 @@ def upload_file():
try:
if request.form["source"] == "web":
print_log('Web', 'Returned link page', print_debug)
print_log('Web', 'Returned link page for "' + file["file"] + '"', print_debug)
return render_template('link.html', data=data, page=config["SITE_DATA"])
except Exception:
print_log('Web', 'No web reported in form, returned JSON', print_debug)