logic for top-priority habit entries

This commit is contained in:
2022-09-11 00:05:08 +00:00
parent 2a34c29dcb
commit f774c1aa0d
3 changed files with 113 additions and 84 deletions

View File

@@ -1,8 +1,9 @@
(defNew [&prop &mut :EntryType type
&prop &mut :Array<EntryLabel> labels])
&prop &mut :Array<EntryLabel> labels
&prop &mut :Bool topPriority])
(method toString []
"$(case type
"$?(when topPriority "! ")$(case type
((Daily days lastDayDone)
(+
(.join (for day days