shivanis14
commited on
Commit
•
1f54b96
1
Parent(s):
10d324b
Update rda.py
Browse files
rda.py
CHANGED
@@ -53,7 +53,7 @@ def process_nutrition_data(nutrition_per_serving, user_serving_size):
|
|
53 |
}
|
54 |
return scaled_nutrition, percentage_daily_values
|
55 |
|
56 |
-
def
|
57 |
#data is a dict. See https://github.com/ConsumeWise123/rda1/blob/main/clientp.py
|
58 |
try:
|
59 |
nutrition_per_serving = data['nutritionPerServing']
|
|
|
53 |
}
|
54 |
return scaled_nutrition, percentage_daily_values
|
55 |
|
56 |
+
def find_nutrition(data):
|
57 |
#data is a dict. See https://github.com/ConsumeWise123/rda1/blob/main/clientp.py
|
58 |
try:
|
59 |
nutrition_per_serving = data['nutritionPerServing']
|