fix(memory,curator): the leisure plan is not news for the curator

This commit is contained in:
hh
2026-09-07 23:00:17 +00:00
parent 014da65f86
commit a01a08737d
2 changed files with 7 additions and 1 deletions
+5 -1
View File
@@ -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