Add recoloring for negative trackers

This commit is contained in:
Marty Oehme 2021-08-28 10:46:57 +02:00
parent 8d4c32a652
commit 837d77481f
Signed by: Marty
GPG key ID: B7538B8F50A1C800
3 changed files with 19 additions and 2 deletions

View file

@ -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,