Fix missing parentheses in is_complete method call
The is_complete method was incorrectly referenced without parentheses, causing a potential runtime error. This fix ensures proper method invocation and prevents the loop from behaving incorrectly.
This commit is contained in:
parent
cb5fe35d24
commit
b16305e369
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ async def get_report_endpoint(request: ReportRequest):
|
|||
# Wait briefly to avoid aggressive looping
|
||||
await asyncio.sleep(0.1)
|
||||
# Stop if processing is complete and no more logs remain
|
||||
if generator.researcher.is_complete:
|
||||
if generator.researcher.is_complete():
|
||||
break
|
||||
|
||||
except Exception as e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue