fix: download cases
Build and Publish Container / Publish Linux container (push) Successful in 3m53s
Build and Publish Container / Publish Linux container (push) Successful in 3m53s
This commit is contained in:
@@ -146,7 +146,7 @@ def create_app(settings: Settings | None = None) -> FastAPI:
|
||||
async def mods(
|
||||
offset: int = Query(0, ge=0),
|
||||
limit: int = Query(100, ge=1, le=500),
|
||||
state: str | None = Query(None, pattern="^(ready|pending|failed)$"),
|
||||
state: str | None = Query(None, pattern="^(ready|pending|failed|skipped)$"),
|
||||
) -> dict:
|
||||
clauses = [
|
||||
"workshop_id IN (SELECT DISTINCT workshop_id FROM collection_members)"
|
||||
@@ -188,7 +188,9 @@ def create_app(settings: Settings | None = None) -> FastAPI:
|
||||
|
||||
def ready_workshop_rows(allow_partial: bool) -> list[dict]:
|
||||
rows = database.current_mods()
|
||||
failed = [row for row in rows if row.get("status") != "ready"]
|
||||
failed = [
|
||||
row for row in rows if row.get("status") not in {"ready", "skipped"}
|
||||
]
|
||||
if failed and not allow_partial:
|
||||
raise HTTPException(
|
||||
status_code=409,
|
||||
|
||||
Reference in New Issue
Block a user