From 6082e4ff26061d6bf432a785e1f5027d644eacf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kate=C5=99ina=20=C4=8C=C3=AD=C5=BEkov=C3=A1?= Date: Thu, 23 May 2019 23:19:05 +0200 Subject: [PATCH] =?UTF-8?q?testdata:=20koment=C3=A1=C5=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/testutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seminar/testutils.py b/seminar/testutils.py index 4c815e49..73233c22 100644 --- a/seminar/testutils.py +++ b/seminar/testutils.py @@ -114,7 +114,7 @@ def gen_organizatori(rnd, osoby, last_rocnik): organizatori.append(Organizator.objects.create(osoba=os, user=rnd.choice(users), organizuje_od=od, organizuje_do=do)) - return organizatri + return organizatori def gen_ulohy_do_cisla(rnd, cislo, organizatori, resitele, slovnik_cisel, size): '''cislo = cislo cisla v rocniku, nikoli objekt Cislo ''' @@ -139,7 +139,7 @@ def gen_ulohy_do_cisla(rnd, cislo, organizatori, resitele, slovnik_cisel, size): if cislo >= 3: for pi in range(1, ((size + 1) // 2) + 1): - poc_op = rnd.randint(1, 4) + poc_op = rnd.randint(1, 4) #počet opravovatelů poc_oboru = rnd.randint(1, 2) p = Uloha.objects.create( nazev=" ".join([rnd.choice(jaka), rnd.choice(co)]),