Track modification of entries with --change-time

This commit is contained in:
Micah Jerome Ellison 2023-02-18 13:36:19 -08:00 committed by Jonathan Wren
parent 80a4b0778f
commit 742a16b548
2 changed files with 2 additions and 0 deletions

View file

@ -102,6 +102,7 @@ class Folder(Journal):
for entry in entries_to_change: for entry in entries_to_change:
self._diff_entry_dates.append(entry.date) self._diff_entry_dates.append(entry.date)
entry.date = date entry.date = date
entry.modified = True
def parse_editable_str(self, edited: str) -> None: def parse_editable_str(self, edited: str) -> None:
"""Parses the output of self.editable_str and updates its entries.""" """Parses the output of self.editable_str and updates its entries."""

View file

@ -307,6 +307,7 @@ class Journal:
for entry in entries_to_change: for entry in entries_to_change:
entry.date = date entry.date = date
entry.modified = True
def prompt_action_entries(self, msg: MsgText) -> list[Entry]: def prompt_action_entries(self, msg: MsgText) -> list[Entry]:
"""Prompts for action for each entry in a journal, using given message. """Prompts for action for each entry in a journal, using given message.