Fuck that. Apparently I can't set put args in this order but too lazy to reorganize
This commit is contained in:
parent
d2acfd264b
commit
01b19333ba
|
@ -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
2
run.py
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue