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:
parent
2b4386c942
commit
a8281e0d20
@ -108,7 +108,7 @@ def delete_journey(journey_id):
|
|||||||
if not journey:
|
if not journey:
|
||||||
return jsonify({'error': 'Journey not found'}), 404
|
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()
|
save_journeys()
|
||||||
|
|
||||||
return jsonify({'message': 'Journey deleted successfully', 'journey': journey})
|
return jsonify({'message': 'Journey deleted successfully', 'journey': journey})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user