From 6fd319f5c70631f220cbeeb288f3591e2190c4fd Mon Sep 17 00:00:00 2001 From: faucomte97 Date: Fri, 1 Nov 2024 16:14:05 +0000 Subject: [PATCH] Fix key --- game/level_management.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/game/level_management.py b/game/level_management.py index 8c37a516e..1554c8e3a 100644 --- a/game/level_management.py +++ b/game/level_management.py @@ -81,7 +81,10 @@ def set_decor_inner(level, decor, LevelDecor): for data in decor: level_decors.append( LevelDecor( - level_id=level.id, x=data["x"], y=data["y"], decor_name=data["decor_name"] + level_id=level.id, + x=data["x"], + y=data["y"], + decor_name=data["decorName"], ) ) LevelDecor.objects.bulk_create(level_decors) @@ -203,6 +206,6 @@ def email_new_custom_level( "STUDENT_NAME": student_name, "CLASS_NAME": class_name, "LEVEL_URL": level_url, - "MODERATE_URL": moderate_url - } + "MODERATE_URL": moderate_url, + }, )