fix lịch ghi hình và ngày lưu

This commit is contained in:
2026-05-08 13:11:24 +07:00
parent ac376714d2
commit 2efebb0be0
5 changed files with 83 additions and 3 deletions
+3 -3
View File
@@ -40,7 +40,7 @@ class Scheduler:
async def tick(self, schedule: Schedule) -> None:
now = datetime.now()
state = should_record_now(now, schedule)
if self._last_state != state:
await self.apply(state)
self._last_state = state
# Always enforce desired state to recover from external/manual drift.
await self.apply(state)
self._last_state = state