fix: Fix journey ID comparison in delete endpoint

Co-authored-by: aider (ollama/qwen2.5-coder:32b) <aider@aider.chat>
This commit is contained in:
Josh-Dev-Questandaider committed 2026-03-01 17:51:48 +01:00
1 parent 2b4386c942
commit a8281e0d20
1 file changed
+1 -1
+1 -1
View File
@@ -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})