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-Quest 2026-03-01 17:51:48 +01:00
parent 2b4386c942
commit a8281e0d20
No known key found for this signature in database

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})