fix(memory,curator): the leisure plan is not news for the curator
This commit is contained in:
@@ -96,13 +96,17 @@ def briefing(
|
||||
tz: str,
|
||||
now: datetime | None = None,
|
||||
default_window: timedelta = timedelta(hours=24),
|
||||
skip: tuple[Path, ...] = (),
|
||||
) -> str | None:
|
||||
"""Первое сообщение куратору или ``None``, если с прошлого прогона ничего нет."""
|
||||
now = now or datetime.now(UTC)
|
||||
since = last_run(journal, default=now - default_window)
|
||||
replies = new_replies(replies_dir, since, tz)
|
||||
changed = changed_files(
|
||||
watched, since, vault, skip=(str(journal.relative_to(vault)),)
|
||||
watched,
|
||||
since,
|
||||
vault,
|
||||
skip=tuple(str(p.relative_to(vault)) for p in (journal, *skip)),
|
||||
)
|
||||
if not replies and not changed:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user