From 742a16b548804e60cc4c786c0bbb0031d5ef9d00 Mon Sep 17 00:00:00 2001 From: Micah Jerome Ellison Date: Sat, 18 Feb 2023 13:36:19 -0800 Subject: [PATCH] Track modification of entries with --change-time --- jrnl/journals/FolderJournal.py | 1 + jrnl/journals/Journal.py | 1 + 2 files changed, 2 insertions(+) diff --git a/jrnl/journals/FolderJournal.py b/jrnl/journals/FolderJournal.py index a7d5cbfe..2eca0978 100644 --- a/jrnl/journals/FolderJournal.py +++ b/jrnl/journals/FolderJournal.py @@ -102,6 +102,7 @@ class Folder(Journal): for entry in entries_to_change: self._diff_entry_dates.append(entry.date) entry.date = date + entry.modified = True def parse_editable_str(self, edited: str) -> None: """Parses the output of self.editable_str and updates its entries.""" diff --git a/jrnl/journals/Journal.py b/jrnl/journals/Journal.py index b1c2586b..fb5d9e33 100644 --- a/jrnl/journals/Journal.py +++ b/jrnl/journals/Journal.py @@ -307,6 +307,7 @@ class Journal: for entry in entries_to_change: entry.date = date + entry.modified = True def prompt_action_entries(self, msg: MsgText) -> list[Entry]: """Prompts for action for each entry in a journal, using given message.