Skip to content

Commit

Permalink
fixed backend lint/check
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Aug 23, 2024
1 parent b22d7b5 commit 9f23b58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/api/routes/archives.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,8 @@ async def record_task_feedback(
stmt: ExecutableStatement | None = None
if payload.status == "succeeded":
try:
if not payload.files:
raise OSError("No files in payload")
# should we check for file["status"] == "uploaded"?
file: dict = next(iter(payload.files.values()))
filesize = file["size"]
Expand Down
1 change: 1 addition & 0 deletions backend/api/zimfarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class WebhookPayload(BaseModel):
original_schedule_name: str
updated_at: str


class TokenData:
"""In-memory persistence of ZF credentials"""

Expand Down

0 comments on commit 9f23b58

Please sign in to comment.