missing jsonifies

This commit is contained in:
Nicolás Sánchez 2026-06-05 20:07:56 -03:00
parent abd7d1eb4b
commit eccd1420b5
1 changed files with 2 additions and 2 deletions

View File

@ -420,7 +420,7 @@ def fetch_full_log():
return jsonify({"line": last_lines[-200:], "amount_of_lines": amount_of_lines})
except Exception as e:
print(e)
return {"line": [""]*10,"amount_of_lines": 0}
return jsonify({"line": [""]*10,"amount_of_lines": 0})
@stats_api.route("/fetch_log")
@ -441,7 +441,7 @@ def fetch_log():
return jsonify({"line": last_lines, "amount_of_lines": total_amount_of_lines})
except Exception as e:
print(e)
return {"line": [""]*10,"amount_of_lines": 0}
return jsonify({"line": [""]*10,"amount_of_lines": 0})
@stats_api.route("/combined_totals")