Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Thousand separator" not supported in expressions #346

Open
stracker-phil opened this issue Apr 10, 2024 · 0 comments
Open

"Thousand separator" not supported in expressions #346

stracker-phil opened this issue Apr 10, 2024 · 0 comments

Comments

@stracker-phil
Copy link

When using the summary output, my sum() exceeds 1000. I want to display a thousand separator (ideally a localized one), but this is not working.

searchType: tag
searchTarget: calories
startDate: 0d
endDate: 0d
summary:
  template: "Calories tracked today: {{sum()::i}}"

Parsed template: "Calories tracked today: 18850"

Expected Behavior

Extending the ::i flag with a format option should insert a thousand separator to the message, e.g.

template: "Calories tracked today: {{sum()::'i}}" - I think the official format if %'i to insert the thousand separator.
Expected output: "Calories tracked today: 18,850"

Current Behavior

template: "Calories tracked today: {{sum()::'i}}"
Current output: The ' (apostrophe) breaks the syntax, the template is not parsed

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

No branches or pull requests

1 participant