Änderungen zum Produktivbetrieb

This commit is contained in:
Frank Poetzsch-Heffter
2025-06-03 17:28:51 +02:00
parent 609a3a423a
commit 1771cd0d77
2 changed files with 17 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ game_connections = {}
class LobbyConsumer(AsyncWebsocketConsumer):
r = redis.Redis(host='localhost', port=6379, db=0, decode_responses=True)
r = redis.Redis(host='localhost', port=6380, db=0, decode_responses=True)
async def connect(self):
self.join_code = self.scope['url_route']['kwargs']['join_code']
@@ -147,7 +147,7 @@ class LobbyConsumer(AsyncWebsocketConsumer):
# Zustand laden
try:
r = redis.Redis(host='localhost', port=6379, db=0, decode_responses=True)
r = redis.Redis(host='localhost', port=6380, db=0, decode_responses=True)
# Alte Teilnehmer aus Redis holen
data = r.get(f"last_participants_{self.room_group_name}")