Skip to content

Commit

Permalink
Do not copy review_utc in repetition & recurrence series
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-si committed May 14, 2024
1 parent 7c2160d commit d139194
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tasklite-core/source/Lib.hs
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,7 @@ createNextRepetition conf connection task = do
nowMb
<&> (timePrint conf.utcFormat >>> T.pack)
& fromMaybe ""
, Task.review_utc = Nothing
}

insertRecord "tasks" connection newTask
Expand All @@ -843,7 +844,7 @@ createNextRepetition conf connection task = do
pure $
Just $
warnings
<$$> "➡️ Created next task"
<$$> "➡️ Created next task"
<+> dquotes (pretty newTask.body)
<+> "in repetition series"
<+> dquotes (pretty newTask.group_ulid)
Expand Down Expand Up @@ -905,6 +906,7 @@ createNextRecurrence conf connection task = do
& ulidTextToDateTime
<&> (timePrint conf.utcFormat >>> T.pack)
& fromMaybe ""
, Task.review_utc = Nothing
}

tags <-
Expand All @@ -923,7 +925,7 @@ createNextRecurrence conf connection task = do
pure $
Just $
warnings
<$$> "➡️ Created next task"
<$$> "➡️ Created next task"
<+> dquotes (pretty task.body)
<+> "in recurrence series"
<+> dquotes (pretty task.group_ulid)
Expand Down

0 comments on commit d139194

Please sign in to comment.