Add recoloring for negative trackers
This commit is contained in:
parent
8d4c32a652
commit
837d77481f
3 changed files with 19 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ def trackers_to_habits(trackers):
|
|||
habits.append(
|
||||
{
|
||||
"archived": 0 if t["hidden"] == False else 1,
|
||||
"color": 11,
|
||||
"color": 11 if t.get("score", 0) != "-1" else 0,
|
||||
"description": t["label"],
|
||||
"freq_den": 1,
|
||||
"freq_num": 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue