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