Add recoloring for negative trackers

This commit is contained in:
Marty Oehme 2021-08-28 10:46:57 +02:00
parent 8d4c32a652
commit 837d77481f
Signed by: Marty
GPG Key ID: B7538B8F50A1C800
3 changed files with 19 additions and 2 deletions

17
CHANGELOG.md Normal file
View 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

View File

@ -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,

View File

@ -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>"]