Fix page spacing and add daily poetry with manual write testing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user