Skip to content

Commit

Permalink
fix: file id field
Browse files Browse the repository at this point in the history
  • Loading branch information
cakeinsauce committed Sep 24, 2024
1 parent 9ea8c63 commit 1b5f253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion annotation/annotation/annotations/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ def get_all_revisions(
)

if not revisions:
file: File = next((f for f in job.files if f.id == file_id), None)
file: File = next((f for f in job.files if f.file_id == file_id), None)
filters[0] = AnnotatedDoc.job_id == file.previous_job_id
revisions = (
db.query(AnnotatedDoc)
Expand Down

0 comments on commit 1b5f253

Please sign in to comment.