Fix habit import position

This commit is contained in:
Marty Oehme 2021-08-28 10:59:20 +02:00
parent 837d77481f
commit 21fd1e5aaf
Signed by: Marty
GPG key ID: B7538B8F50A1C800
3 changed files with 8 additions and 1 deletions

View file

@ -28,6 +28,7 @@ def trackers_to_habits(trackers):
"highlight": 0,
"name": f"{t['emoji']} {t['label']}",
"question": "",
"position": 0,
"unit": "" if t["uom"] == "num" else t["uom"],
"uuid": t["id"],
}