Skip to content

Add energy_summary to get_food_log response#9

Merged
rwestergren merged 1 commit into
mainfrom
add-energy-summary
May 2, 2026
Merged

Add energy_summary to get_food_log response#9
rwestergren merged 1 commit into
mainfrom
add-energy-summary

Conversation

@rwestergren

Copy link
Copy Markdown
Owner

Lifts total_target_kcal (diary.summary.macros.energy) and consumed_kcal (diary.summary.consumed.total) to the top level and pre-computes remaining_kcal, so clients don't need to traverse the nested diary summary or compute the difference themselves. remaining_kcal is rounded to an int; energy_summary is null when either source field is missing.

Lifts total_target_kcal (diary.summary.macros.energy) and consumed_kcal
(diary.summary.consumed.total) to the top level and pre-computes
remaining_kcal, so clients don't need to traverse the nested diary
summary or compute the difference themselves. remaining_kcal is rounded
to an int; energy_summary is null when either source field is missing.
@rwestergren rwestergren merged commit da7122b into main May 2, 2026
1 check passed
@rwestergren rwestergren deleted the add-energy-summary branch May 2, 2026 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant