testutils: oprava indentace
This commit is contained in:
parent
f30392d92b
commit
5afa47c18e
1 changed files with 5 additions and 5 deletions
|
@ -163,11 +163,11 @@ def gen_ulohy_do_cisla(cislo, organizatori, resitele, slovnik_cisel, size):
|
||||||
poc_resitel = rnd.randint(1, 3)
|
poc_resitel = rnd.randint(1, 3)
|
||||||
res_sel = rnd.sample(resitele, min(poc_reseni, len(resitele) - 2))
|
res_sel = rnd.sample(resitele, min(poc_reseni, len(resitele) - 2))
|
||||||
for resitel in res_sel:
|
for resitel in res_sel:
|
||||||
res = Reseni.objects.create(problem = p,
|
res = Reseni.objects.create(problem = p,
|
||||||
resitele=[resitel],
|
resitele=[resitel],
|
||||||
forma=rnd.choice(Reseni.FORMA_CHOICES))
|
forma=rnd.choice(Reseni.FORMA_CHOICES))
|
||||||
hod = Hodnoceni.objects.create(body=rnd.randint(0, p.max_body),
|
hod = Hodnoceni.objects.create(body=rnd.randint(0, p.max_body),
|
||||||
cislo_body=slovnik_cisel[cislo], reseni=res, problem=p)
|
cislo_body=slovnik_cisel[cislo], reseni=res, problem=p)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue