Keep last verified stage visible while background refresh catches up
This commit is contained in:
@@ -2874,7 +2874,7 @@ async def recent_requests(
|
|||||||
status_label = "Repair in progress"
|
status_label = "Repair in progress"
|
||||||
elif status_label in {"Working on it", "Ready to watch", "Partially ready"}:
|
elif status_label in {"Working on it", "Ready to watch", "Partially ready"}:
|
||||||
saved = stage_cache.get(row.get("request_id")) or {}
|
saved = stage_cache.get(row.get("request_id")) or {}
|
||||||
is_available = bool(saved.get("ready")) and saved.get("source_updated") == row.get("updated_at")
|
is_available = bool(saved.get("ready"))
|
||||||
status_label = _status_label_with_jellyfin(status, is_available)
|
status_label = _status_label_with_jellyfin(status, is_available)
|
||||||
if status_label == STATUS_LABELS[4]:
|
if status_label == STATUS_LABELS[4]:
|
||||||
status = 4
|
status = 4
|
||||||
|
|||||||
Reference in New Issue
Block a user