Fix habit import position
This commit is contained in:
parent
837d77481f
commit
21fd1e5aaf
3 changed files with 8 additions and 1 deletions
|
@ -7,6 +7,12 @@ and this project tries to adhere to [Semantic Versioning](https://semver.org/spe
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.2.1] - 2021-08-28
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* Fix Loop Habit import breaking because of missing habit position
|
||||||
|
|
||||||
## [0.2.0] - 2021-08-28
|
## [0.2.0] - 2021-08-28
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -28,6 +28,7 @@ def trackers_to_habits(trackers):
|
||||||
"highlight": 0,
|
"highlight": 0,
|
||||||
"name": f"{t['emoji']} {t['label']}",
|
"name": f"{t['emoji']} {t['label']}",
|
||||||
"question": "",
|
"question": "",
|
||||||
|
"position": 0,
|
||||||
"unit": "" if t["uom"] == "num" else t["uom"],
|
"unit": "" if t["uom"] == "num" else t["uom"],
|
||||||
"uuid": t["id"],
|
"uuid": t["id"],
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "nomie-migration"
|
name = "nomie-migration"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
description = "migrate nomie data to loop habits tracker"
|
description = "migrate nomie data to loop habits tracker"
|
||||||
authors = ["Marty Oehme <marty.oehme@gmail.com>"]
|
authors = ["Marty Oehme <marty.oehme@gmail.com>"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue