Zwischenstand Lernmodus
This commit is contained in:
@@ -84,6 +84,13 @@ def create_game(request, quiz_id):
|
||||
game.quiz_id = quiz
|
||||
game.host_id = game.generate_unique_id()
|
||||
game.save()
|
||||
|
||||
participant = QuizGameParticipant()
|
||||
participant.display_name = "DU"
|
||||
participant.participant_id=game.host_id
|
||||
participant.quiz_game = game
|
||||
participant.score = 0 # Initialize score
|
||||
participant.save()
|
||||
|
||||
response = HttpResponseRedirect(reverse('play:lobby', kwargs={'join_code': game.join_code}))
|
||||
response.set_cookie('host_id', game.host_id, max_age=3600)
|
||||
|
||||
Reference in New Issue
Block a user