Skip to content

Commit

Permalink
reduce diff
Browse files Browse the repository at this point in the history
  • Loading branch information
gecBurton committed Oct 17, 2024
1 parent 1d36ae1 commit 35ef651
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions django_app/redbox_app/redbox_core/consumers.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@
logger = logging.getLogger(__name__)
logger.info("WEBSOCKET_SCHEME is: %s", settings.WEBSOCKET_SCHEME)

env = Settings()
elasticsearch_client = env.elasticsearch_client()


def parse_page_number(obj: int | list[int] | None) -> list[int]:
if isinstance(obj, int):
Expand All @@ -70,7 +67,7 @@ class ChatConsumer(AsyncWebsocketConsumer):
citations: ClassVar = []
route = None
metadata: RequestMetadata = RequestMetadata()
redbox = Redbox(env=env, debug=True)
redbox = Redbox(env=Settings(), debug=True)

async def receive(self, text_data=None, bytes_data=None):
"""Receive & respond to message from browser websocket."""
Expand Down

0 comments on commit 35ef651

Please sign in to comment.