From 21fd1e5aaf1aa4686d4a4cf2bb73a68f184a4cab Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 28 Aug 2021 10:59:20 +0200 Subject: [PATCH] Fix habit import position --- CHANGELOG.md | 6 ++++++ loop/habits.py | 1 + pyproject.toml | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index db0c082..9cfa774 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project tries to adhere to [Semantic Versioning](https://semver.org/spe ## [Unreleased] +## [0.2.1] - 2021-08-28 + +### Fixed + +* Fix Loop Habit import breaking because of missing habit position + ## [0.2.0] - 2021-08-28 ### Added diff --git a/loop/habits.py b/loop/habits.py index de8ac1a..ec04e9f 100644 --- a/loop/habits.py +++ b/loop/habits.py @@ -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"], } diff --git a/pyproject.toml b/pyproject.toml index b5638e5..59c0f8d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "nomie-migration" -version = "0.2.0" +version = "0.2.1" description = "migrate nomie data to loop habits tracker" authors = ["Marty Oehme "]