Fix page spacing and add daily poetry with manual write testing

This commit is contained in:
Pigway
2026-10-02 09:57:42 +08:00
parent d10b07c464
commit 42ae00268b
16 changed files with 403 additions and 6 deletions
+4
View File
@@ -422,6 +422,8 @@ class DisplayService:
)
def _start_write(self, id):
if not self.settings.mock and not self.settings.write_enabled:
raise FlowError(E.WRITE_DISABLED, "Real device writes are disabled", 403)
self.db.execute(
"UPDATE operations SET write_started=1,status='UPLOADING',updated_at=? WHERE id=?",
(now_iso(), id),
@@ -456,6 +458,8 @@ class DisplayService:
pass
def expire(self):
if not self.settings.mock and not self.settings.write_enabled:
return
for device_id in self.registry.drivers:
if self.blocked(device_id):
continue