Add recoloring for negative trackers
This commit is contained in:
parent
8d4c32a652
commit
837d77481f
3 changed files with 19 additions and 2 deletions
17
CHANGELOG.md
Normal file
17
CHANGELOG.md
Normal file
|
@ -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
|
|
@ -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,
|
||||
|
|
|
@ -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 <marty.oehme@gmail.com>"]
|
||||
|
||||
|
|
Loading…
Reference in a new issue