From 095c6a7a416140da70f76f7cc3547d1599047246 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Mon, 19 Jun 2023 13:50:50 -0700 Subject: [PATCH] Fix some JSON serialization issues --- intake/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intake/app.py b/intake/app.py index 4651378..ff1507f 100644 --- a/intake/app.py +++ b/intake/app.py @@ -180,10 +180,10 @@ def update(source_name, item_id): if "tts" in params: tomorrow = datetime.now() + timedelta(days=1) morning = datetime(tomorrow.year, tomorrow.month, tomorrow.day, 6, 0, 0) - til_then = morning.timestamp() - item["created"] + til_then = int(morning.timestamp()) - item["created"] item["tts"] = til_then source.save_item(item) - return jsonify(item) + return jsonify(item._item) @app.post("/mass-deactivate/")