Skip to content

Commit

Permalink
Include default start date for metrics
Browse files Browse the repository at this point in the history
This commit sets a default start date for calculating metrics,
which is one year ago (365 days).

Signed-off-by: Jose Javier Merchante <[email protected]>
  • Loading branch information
jjmerchante committed Feb 14, 2025
1 parent 9bc3ae7 commit c85e012
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trustable_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
@click.option(
"--from-date",
type=click.DateTime(formats=["%Y-%m-%d"]),
help="Start date",
help="Start date, by default last year",
default=(datetime.datetime.today() - datetime.timedelta(days=365)).strftime("%Y-%m-%d"),
)
@click.option(
"--to-date",
Expand Down

0 comments on commit c85e012

Please sign in to comment.