US05-05: Operate Uploads in the Browser (#75)

This commit was merged in pull request #75.
This commit is contained in:
2026-08-16 16:08:32 +02:00
parent 3c440f3d43
commit ac9943884d
8 changed files with 1189 additions and 4 deletions

View File

@@ -397,7 +397,7 @@ class UploadBatchService:
def _batch_dict(row: UploadBatch, items: list[UploadItem]) -> dict:
return {
batch = {
"id": row.id,
"album": row.album,
"folder": row.folder,
@@ -449,3 +449,8 @@ def _batch_dict(row: UploadBatch, items: list[UploadItem]) -> dict:
for item in items
],
}
# Why this batch may not be (re)started, from the one place that decides it
# (US05-04). Carried in the record so the browser can hide an action the server
# would refuse instead of re-implementing the policy (US05-05).
batch["retry_blockers"] = retry_blockers(batch)
return batch