We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5eab0ba commit 241929dCopy full SHA for 241929d
demo.py
@@ -3709,8 +3709,8 @@ def main():
3709
)
3710
3711
if summary:
3712
- steps = summary.get("totalSteps", 0)
3713
- calories = summary.get("totalKilocalories", 0)
+ steps = summary.get("totalSteps") or 0
+ calories = summary.get("totalKilocalories") or 0
3714
3715
# Build stats string with hydration if available
3716
stats_parts = [f"{steps:,} steps", f"{calories} kcal"]
0 commit comments