diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..db0c082 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,17 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project tries to adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +## [0.2.0] - 2021-08-28 + +### Added + +* Check for duplicate habits before adding them +* Inform user of duplicate habits +* Color negatively scored habits red in Loop Habit Tracker (does not work for custom scores) +* Begin keeping this changelog diff --git a/loop/habits.py b/loop/habits.py index f2cf70d..de8ac1a 100644 --- a/loop/habits.py +++ b/loop/habits.py @@ -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, diff --git a/pyproject.toml b/pyproject.toml index cfac0b5..b5638e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "nomie-migration" -version = "0.1.0" +version = "0.2.0" description = "migrate nomie data to loop habits tracker" authors = ["Marty Oehme "]