From 1b5f253e717c869118a677180d4535ba9cdc8ec4 Mon Sep 17 00:00:00 2001 From: Denis Rybakov Date: Tue, 24 Sep 2024 16:58:00 +0300 Subject: [PATCH] fix: file id field --- annotation/annotation/annotations/resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/annotation/annotation/annotations/resources.py b/annotation/annotation/annotations/resources.py index 559d1c812..30823a17e 100644 --- a/annotation/annotation/annotations/resources.py +++ b/annotation/annotation/annotations/resources.py @@ -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)