Polish upload drafts, restore availability and offline API docs

This commit is contained in:
Pigway
2026-10-02 00:11:37 +08:00
parent 6652590b84
commit a4a257553a
9 changed files with 96 additions and 5 deletions
+3
View File
@@ -237,6 +237,8 @@ class DisplayService:
from pigway_frame_flow.models import Content
asset = self.content_asset(TypeAdapter(Content).validate_python(payload))
if action == "local-upload":
asset = self.assets.promote(asset["asset_id"])
self.update(
id, "COMPLETED", dict(asset_id=asset["asset_id"], url=asset["url"])
)
@@ -330,6 +332,7 @@ class DisplayService:
driver.display(image_id)
result = {"image_id": image_id}
if asset:
self.assets.promote(asset["asset_id"])
result["rendered_asset_id"] = asset["asset_id"]
self.update(id, "SYNCING", result)
driver.invalidate()