diff options
author | Changjin Lee <changjin9792@gmail.com> | 2023-03-24 03:28:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-24 03:28:30 +0800 |
commit | 2a8a0990b04612d2e5d32549a056a9f875d1626c (patch) | |
tree | 88093171e896fe887f06eb0e1063f0f461324c62 | |
parent | 7baf3e7d660051a0247519a3f38319de85188638 (diff) | |
parent | 0c2d88dcd9335eaa4f1a81201161881c1cf3a8ce (diff) |
Merge pull request #18 from noisrucer/bug/add-task-color-error
[Fix] Fixed `addtask` error due to removed color option
-rw-r--r-- | girok/commands/task.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/girok/commands/task.py b/girok/commands/task.py index 33441f9..d3cf405 100644 --- a/girok/commands/task.py +++ b/girok/commands/task.py @@ -285,8 +285,8 @@ def add_task( # year, month, day = "2000", "01", "01" # meaningless date in case of everyday full_deadline = f"{year}-{month}-{day} {time if time else '12:00:00'}" - # Color - 만약 카테고리있으면 자동설정 (category 하고 Color 중복설정 불가) + color = None if cat and cat != "none": cat_color = category_api.get_category_color(cat_id) if color: # duplicate colors - prioritize default category color |