Skip to content

Commit

Permalink
CELE-119 style: Apply linting
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsobspinto committed Jan 9, 2025
1 parent ef841ec commit a7d25cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions applications/visualizer/backend/api/decorators/streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ async def line_generator():
yield line

# Return a streaming response that sends data asynchronously
return StreamingHttpResponse(line_generator(), content_type="text/plain", headers={"Content-Encoding": "identity"})

return StreamingHttpResponse(
line_generator(),
content_type="text/plain",
headers={"Content-Encoding": "identity"},
)

return wrapper
2 changes: 1 addition & 1 deletion ingestion/ingestion/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ def trigger_populate_db(args):
if line:
if isinstance(line, bytes):
line = line.decode("utf-8")
print(line, flush=True)
print(line, flush=True)
except KeyboardInterrupt:
print("\nStreaming interrupted by user.", file=sys.stderr)
except Exception as e:
Expand Down

0 comments on commit a7d25cb

Please sign in to comment.