Skip to content

Commit

Permalink
refactor: avoid spamming console with weekend/weekday metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
chanshing committed Jun 11, 2024
1 parent 5c26c03 commit 130ec33
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/stepcount/stepcount.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,7 @@ def main():
# Print
print("\nSummary\n-------")
print(json.dumps(
# exclude hour-of-day metrics to avoid spamming the console
{k: v for k, v in info.items() if not re.search(r'_Hour\d{2}', k)},
{k: v for k, v in info.items() if not re.search(r'_Weekend|_Weekday|_Hour\d{2}', k)},
indent=4, cls=NpEncoder
))
print("\nEstimated Daily Stats\n---------------------")
Expand Down

0 comments on commit 130ec33

Please sign in to comment.