Skip to content

Commit

Permalink
Update food.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Yazan10x committed Dec 17, 2023
1 parent ee48ab3 commit 6190b16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/routes/food.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from bson import ObjectId
from flask import Blueprint, Response, abort, jsonify, request

from models.food import FoodEntry, FoodEntryRecomendation
from models.food import FoodEntry, FoodEntryRecommendation
from mongodb_api.carbon_track_db import CarbonTrackDB
from routes import carbon_auth
from utils.FirebaseAPI import FirebaseAPI
Expand Down Expand Up @@ -111,7 +111,7 @@ def get_food_recommendation_for_today() -> Response:
return get_food_metric_for_today()
else:
item = FoodEntry.from_json(item)
food_recommendation = FoodEntryRecomendation.from_food_entry(item).to_json()
food_recommendation = FoodEntryRecommendation.from_food_entry(item).to_json()
return jsonify({'food_recommendation': food_recommendation})
except CarbonTrackError as e:
abort(code=400, description=f"{e}")
abort(code=400, description=f"{e}")

0 comments on commit 6190b16

Please sign in to comment.