fix(backend): broken null timestamp handling

This commit is contained in:
2026-02-17 18:49:03 +00:00
parent ed0dd8cdbc
commit 289f4254db

View File

@@ -47,7 +47,7 @@ def get_dataset():
if stat_obj is None:
return jsonify({"error": "No data uploaded"}), 400
return jsonify(stat_obj.df.to_dict(orient="records")), 200
return stat_obj.df.to_json(orient="records"), 200, {"Content-Type": "application/json"}
@app.route('/stats/content', methods=['GET'])
def word_frequencies():