From 289f4254db63af8caa00d69efec0b32086a6c092 Mon Sep 17 00:00:00 2001 From: Dylan De Faoite Date: Tue, 17 Feb 2026 18:49:03 +0000 Subject: [PATCH] fix(backend): broken null timestamp handling --- server/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app.py b/server/app.py index 18f30c9..7b3730d 100644 --- a/server/app.py +++ b/server/app.py @@ -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():