missing jsonifies
This commit is contained in:
parent
abd7d1eb4b
commit
eccd1420b5
|
|
@ -420,7 +420,7 @@ def fetch_full_log():
|
||||||
return jsonify({"line": last_lines[-200:], "amount_of_lines": amount_of_lines})
|
return jsonify({"line": last_lines[-200:], "amount_of_lines": amount_of_lines})
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
return {"line": [""]*10,"amount_of_lines": 0}
|
return jsonify({"line": [""]*10,"amount_of_lines": 0})
|
||||||
|
|
||||||
|
|
||||||
@stats_api.route("/fetch_log")
|
@stats_api.route("/fetch_log")
|
||||||
|
|
@ -441,7 +441,7 @@ def fetch_log():
|
||||||
return jsonify({"line": last_lines, "amount_of_lines": total_amount_of_lines})
|
return jsonify({"line": last_lines, "amount_of_lines": total_amount_of_lines})
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
return {"line": [""]*10,"amount_of_lines": 0}
|
return jsonify({"line": [""]*10,"amount_of_lines": 0})
|
||||||
|
|
||||||
|
|
||||||
@stats_api.route("/combined_totals")
|
@stats_api.route("/combined_totals")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue