Handle case with no arg
This commit is contained in:
parent
162a77d31a
commit
594ddbd740
5
wsgi.py
5
wsgi.py
@ -290,9 +290,12 @@ def tables():
|
|||||||
output_str.append(tfoot)
|
output_str.append(tfoot)
|
||||||
output_str.append(table[idx:])
|
output_str.append(table[idx:])
|
||||||
|
|
||||||
importance_factor = float(request.args.get("importance"))
|
|
||||||
|
importance_factor = request.args.get("importance")
|
||||||
if not importance_factor:
|
if not importance_factor:
|
||||||
importance_factor = 1.0
|
importance_factor = 1.0
|
||||||
|
else:
|
||||||
|
importance_factor = float(importance_factor)
|
||||||
|
|
||||||
output_str = []
|
output_str = []
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user