File tree Expand file tree Collapse file tree
src/backend/common/services Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments