Skip to content

Commit f5f7bd5

Browse files
authored
chore(deps): bump click from 8.2.1 to 8.3.1 (#82)
2 parents df4b015 + 2d5b300 commit f5f7bd5

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

compiler_admin/commands/time/download.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ def prior_month_start():
4545
)
4646
@click.option(
4747
"--all",
48-
"billable",
48+
"include_all",
4949
is_flag=True,
50-
default=True,
50+
default=False,
5151
help="Download all time entries. The default is to download only billable time entries.",
5252
)
5353
@click.option(
@@ -91,7 +91,7 @@ def download(
9191
start: datetime,
9292
end: datetime,
9393
output: str = "",
94-
billable: bool = True,
94+
include_all: bool = False,
9595
client_ids: List[int] = [],
9696
project_ids: List[int] = [],
9797
task_ids: List[int] = [],
@@ -103,8 +103,10 @@ def download(
103103

104104
params = dict(start_date=start, end_date=end, output_path=output, output_cols=TOGGL_COLUMNS)
105105

106-
if billable:
107-
params.update(dict(billable=billable))
106+
# By default include billable=True in params.
107+
# If --all was passed, do not add billable so callers can treat absence as "all".
108+
if not include_all:
109+
params.update(dict(billable=True))
108110
if client_ids:
109111
params.update(dict(client_ids=client_ids))
110112
if project_ids:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ authors = [
1111
]
1212
requires-python = ">=3.11"
1313
dependencies = [
14-
"click==8.2.1",
14+
"click==8.3.1",
1515
"gam7==7.29.4",
1616
"pandas==2.3.3",
1717
"tzdata",

0 commit comments

Comments
 (0)