Skip to content

Commit

Permalink
fix: args for pipeline (#860)
Browse files Browse the repository at this point in the history
  • Loading branch information
SunnyCapt authored and khyurri committed Jun 4, 2024
1 parent 2c3afde commit 11b6447
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions annotation/annotation/revisions/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def get_revisions_without_annotation(
AnnotatedDoc.file_id == file_id,
AnnotatedDoc.tenant == x_current_tenant,
)
.order_by(AnnotatedDoc.date)
.all()
)
return revisions or []
5 changes: 3 additions & 2 deletions jobs/jobs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ async def convert_previous_jobs_for_inference(
)
if not revisions:
continue
file_data["revision"] = revisions[-1]
file_data["revision"] = revisions[-1]["revision"]
file_data["file_id"] = file_id
result.append(file_data)

return result
Expand Down Expand Up @@ -749,7 +750,7 @@ async def enrich_annotators_with_usernames(

async def get_annotation_revisions(
job_id: int, file_id: int, current_tenant: Optional[str], jw_token: str
) -> Optional[List[int]]:
) -> Optional[List[dict]]:
"""Get progress of the job with 'job_id' from Pipelines
or Annotation Manager depending on 'job_mode'."""

Expand Down

0 comments on commit 11b6447

Please sign in to comment.