-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(database): Improve statistics query
This commit improves the statistics query to handle the `since` parameter more gracefully. The query only adds a date filter if the `since` parameter is not "forever". This change ensures that the statistics are calculated correctly for all time periods. Additionally, the translation for "forever" has been added to support this new functionality. Finally, the `since` options in the UI have been updated to allow selection of "forever". Signed-off-by: Jo Vandeginste <[email protected]>
- Loading branch information
1 parent
803a063
commit 9e3b2e6
Showing
4 changed files
with
28 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,23 @@ | ||
[build] | ||
bin = "./tmp/workout-tracker" | ||
cmd = "make build-server" | ||
delay = 1000 | ||
exclude_dir = ["docs", "testdata", "tmp", "vendor"] | ||
exclude_file = ["assets/output.css", "screenshots.js"] | ||
exclude_regex = ["_templ.go", "_test.go"] | ||
bin = "./tmp/workout-tracker" | ||
cmd = "make build-server" | ||
delay = 1000 | ||
exclude_dir = ["docs", "testdata", "tmp", "vendor"] | ||
exclude_file = ["assets/output.css", "screenshots.js"] | ||
exclude_regex = ["_templ.go", "_test.go"] | ||
exclude_unchanged = false | ||
include_ext = ["css", "go", "html", "js", "json", "templ", "tmpl", "tpl"] | ||
stop_on_error = true | ||
include_ext = [ | ||
"css", | ||
"go", | ||
"html", | ||
"js", | ||
"json", | ||
"templ", | ||
"tmpl", | ||
"tpl", | ||
"yaml", | ||
] | ||
stop_on_error = true | ||
|
||
[screen] | ||
clear_on_rebuild = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters