From 80ee091d579dddcb844ad66e66c714fd21ff7dee Mon Sep 17 00:00:00 2001
From: borzechof99 <borzechof99@mi.fu-berlin.de>
Date: Sun, 20 Jun 2021 21:04:24 +0200
Subject: [PATCH] Update seed_db to include unfilled Criterion for Sport

---
 unisportomat/quiz/management/commands/seed_db.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/unisportomat/quiz/management/commands/seed_db.py b/unisportomat/quiz/management/commands/seed_db.py
index ded2a91..9bfe4e7 100644
--- a/unisportomat/quiz/management/commands/seed_db.py
+++ b/unisportomat/quiz/management/commands/seed_db.py
@@ -90,6 +90,8 @@ class Command(BaseCommand):
         # Create ratings for all sports and criterions
         for sport in Sport.objects.all():
             for criterion in Criterion.objects.all():
+                if sport.name == "Ballett" and criterion.name == "Mannschaftssport":
+                    continue
                 sport.rate(criterion, random.randint(1, 10))
 
         # Create questions
-- 
GitLab