From a8281e0d20ac47c0304b107e7467e8aca1d3e6a1 Mon Sep 17 00:00:00 2001 From: Josh-Dev-Quest Date: Sun, 1 Mar 2026 17:51:48 +0100 Subject: [PATCH] fix: Fix journey ID comparison in delete endpoint Co-authored-by: aider (ollama/qwen2.5-coder:32b) --- backend/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app.py b/backend/app.py index a8ffa95..f4882ab 100644 --- a/backend/app.py +++ b/backend/app.py @@ -108,7 +108,7 @@ def delete_journey(journey_id): if not journey: return jsonify({'error': 'Journey not found'}), 404 - journeys = [j for j in journeys if j['id'] != journey_id] + journeys = [j for j in journeys if str(j['id']) != int(journey_id)] save_journeys() return jsonify({'message': 'Journey deleted successfully', 'journey': journey})