chore: remove debug logging from placeholder_resolver
This commit is contained in:
parent
fb6d37ecfd
commit
5b4688fa30
|
|
@ -112,10 +112,8 @@ def get_nutrition_avg(profile_id: str, field: str, days: int = 30) -> str:
|
||||||
This function now only FORMATS the data for AI consumption.
|
This function now only FORMATS the data for AI consumption.
|
||||||
"""
|
"""
|
||||||
data = get_nutrition_average_data(profile_id, days)
|
data = get_nutrition_average_data(profile_id, days)
|
||||||
print(f"[DEBUG] get_nutrition_average_data returned: {data}")
|
|
||||||
|
|
||||||
if data['confidence'] == 'insufficient':
|
if data['confidence'] == 'insufficient':
|
||||||
print(f"[DEBUG] Confidence is insufficient, returning 'nicht verfügbar'")
|
|
||||||
return "nicht verfügbar"
|
return "nicht verfügbar"
|
||||||
|
|
||||||
# Map field names to data keys
|
# Map field names to data keys
|
||||||
|
|
@ -127,7 +125,6 @@ def get_nutrition_avg(profile_id: str, field: str, days: int = 30) -> str:
|
||||||
}
|
}
|
||||||
data_key = field_map.get(field, f'{field}_avg')
|
data_key = field_map.get(field, f'{field}_avg')
|
||||||
value = data.get(data_key, 0)
|
value = data.get(data_key, 0)
|
||||||
print(f"[DEBUG] field={field}, data_key={data_key}, value={value}")
|
|
||||||
|
|
||||||
if field == 'kcal':
|
if field == 'kcal':
|
||||||
return f"{int(value)} kcal/Tag (Ø {days} Tage)"
|
return f"{int(value)} kcal/Tag (Ø {days} Tage)"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user