From bfbc59819ad9451cf32a07f63929468156b3f409 Mon Sep 17 00:00:00 2001 From: SKairinos Date: Wed, 4 Dec 2024 10:29:01 +0000 Subject: [PATCH] fix: get level by name --- game/migrations/0111_create_worksheets.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/game/migrations/0111_create_worksheets.py b/game/migrations/0111_create_worksheets.py index 933d908d2..92c118f48 100644 --- a/game/migrations/0111_create_worksheets.py +++ b/game/migrations/0111_create_worksheets.py @@ -47,7 +47,7 @@ def create_worksheets(apps: Apps, *args): ), Worksheet( episode=Episode.objects.get(pk=12), - before_level=Level.objects.get(pk=156), + before_level=Level.objects.get(name="1001"), lesson_plan_link="https://code-for-life.gitbook.io/python-lessons-with-raspberry-pi-ide/DGiFT28ihVJK7ghZQHqu/python-5-iteration-part-1", slides_link="https://4077022412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwAuC4Q5WQz4ea2O2b2JP%2Fuploads%2FG1pLAqvXg6s6hGtnb5ss%2FPython%205%20-%20Iteration%201.pptx?alt=media&token=d9bf3e3f-bf12-4227-89b7-70515e16dcc9", student_worksheet_link="https://code-for-life.gitbook.io/student-resources/python-den-student-resources/worksheet-5-iteration-part-1", @@ -65,7 +65,7 @@ def create_worksheets(apps: Apps, *args): ), Worksheet( episode=Episode.objects.get(pk=13), - before_level=Level.objects.get(pk=157), + before_level=Level.objects.get(name="1014"), lesson_plan_link="https://code-for-life.gitbook.io/python-lessons-with-raspberry-pi-ide/DGiFT28ihVJK7ghZQHqu/python-7-selection-in-a-loop", slides_link="https://4077022412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwAuC4Q5WQz4ea2O2b2JP%2Fuploads%2FPtj4c6IjIafaUPN8k4u1%2FPython%207%20-%20Selection%20in%20a%20loop.pptx?alt=media&token=9f5fce8e-bb72-4e38-8715-89ec7bcc6d6c", student_worksheet_link="https://code-for-life.gitbook.io/student-resources/python-den-student-resources/worksheet-7-selection-in-a-loop", @@ -74,7 +74,7 @@ def create_worksheets(apps: Apps, *args): ), Worksheet( episode=Episode.objects.get(pk=14), - before_level=Level.objects.get(pk=169), + before_level=Level.objects.get(name="1026"), lesson_plan_link="https://code-for-life.gitbook.io/python-lessons-with-raspberry-pi-ide/DGiFT28ihVJK7ghZQHqu/python-8-indeterminate-loops", slides_link="https://4077022412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwAuC4Q5WQz4ea2O2b2JP%2Fuploads%2FkxewOibLrvKLpJpuDBRH%2FPython%208%20-%20Indeterminate%20Loops.pptx?alt=media&token=ddf212d5-f0a7-47b2-8a6b-420ca2cccc12", student_worksheet_link="https://code-for-life.gitbook.io/student-resources/python-den-student-resources/worksheet-8-indeterminate-loops", @@ -101,7 +101,7 @@ def create_worksheets(apps: Apps, *args): ), Worksheet( episode=Episode.objects.get(pk=15), - before_level=Level.objects.get(pk=184), + before_level=Level.objects.get(name="1041"), lesson_plan_link="https://code-for-life.gitbook.io/python-lessons-with-raspberry-pi-ide/DGiFT28ihVJK7ghZQHqu/python-11-using-for-loops", slides_link="https://4077022412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwAuC4Q5WQz4ea2O2b2JP%2Fuploads%2F8AjR4b5mO4yOzEIVNI4V%2FPython%2011%20-%20For%20loops.pptx?alt=media&token=5eaa671c-a5eb-43a3-9f13-3478349027e5", student_worksheet_link="https://code-for-life.gitbook.io/student-resources/python-den-student-resources/worksheet-11-for-loops",