Skip to content

Commit 8a8d476

Browse files
author
Shreyas-Microsoft
committed
fix lint
1 parent 196d438 commit 8a8d476

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/backend/common/services/batch_service.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ async def get_file_report(self, file_id: str) -> Optional[Dict]:
6666
# Look for the final success log with the translated result
6767
if logs:
6868
for log in logs:
69-
if (log.get("log_type") == "success" and
70-
log.get("agent_type") == "agents" and
71-
log.get("last_candidate")):
69+
if (log.get("log_type") == "success" and log.get("agent_type") == "agents" and log.get("last_candidate")):
7270
translated_content = log["last_candidate"]
7371
break
7472
except IOError as e:
@@ -94,9 +92,7 @@ async def get_file_translated(self, file: dict):
9492
# Look for the final success log with the translated result
9593
if "logs" in file and file["logs"]:
9694
for log in file["logs"]:
97-
if (log.get("log_type") == "success" and
98-
log.get("agent_type") == "agents" and
99-
log.get("last_candidate")):
95+
if (log.get("log_type") == "success" and log.get("agent_type") == "agents" and log.get("last_candidate")):
10096
translated_content = log["last_candidate"]
10197
break
10298
except IOError as e:

0 commit comments

Comments
 (0)