Skip to content

Commit

Permalink
fix: Set default color to toggl's default 1 (#302)
Browse files Browse the repository at this point in the history
Fixes `ERROR: Toggl's API server returned 400 code with
message: "color needs to be integer"` while adding new project
without `--color` argument.
  • Loading branch information
dkvc authored Feb 18, 2023
1 parent 5086039 commit 7ee7aa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toggl/cli/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ def projects(ctx, workspace):
help='Specifies whether the estimated hours should be automatically calculated based on task estimations '
'(Premium only)')
@click.option('--rate', '-r', type=click.FLOAT, help='Hourly rate of the project (Premium only)')
@click.option('--color', type=click.INT, help='ID of color used for the project')
@click.option('--color', type=click.INT, default=1, help='ID of color used for the project')
@click.pass_context
def projects_add(ctx, public=None, **kwargs):
"""
Expand Down

0 comments on commit 7ee7aa8

Please sign in to comment.