|
|
@ -154,7 +154,8 @@ def gen_ulohy_do_cisla(rnd, cislo, organizatori, resitele, slovnik_cisel, size): |
|
|
|
cislo_zadani=slovnik_cisel[cislo-2], |
|
|
|
cislo_reseni=slovnik_cisel[cislo], |
|
|
|
cislo_deadline=slovnik_cisel[cislo], |
|
|
|
max_body = rnd.randint(1, 8)) |
|
|
|
max_body = rnd.randint(1, 8) |
|
|
|
) |
|
|
|
p.zadani = " ".join( |
|
|
|
[rnd.choice(sloveso), |
|
|
|
rnd.choice(koho), |
|
|
@ -187,9 +188,13 @@ def gen_ulohy_do_cisla(rnd, cislo, organizatori, resitele, slovnik_cisel, size): |
|
|
|
|
|
|
|
def gen_soustredeni(): |
|
|
|
# TODO: vice soustredeni a k nim nahodne podmnoziny organizatoru a ucastniku |
|
|
|
sous = Soustredeni.objects.create(rocnik=Rocnik.objects.first(), verejne_db=True, |
|
|
|
misto=u'Někde', datum_zacatku=datetime.date(2000, 11, 23), |
|
|
|
datum_konce=datetime.date(2000, 11, 27)) |
|
|
|
sous = Soustredeni.objects.create( |
|
|
|
rocnik=Rocnik.objects.first(), |
|
|
|
verejne_db=True, |
|
|
|
misto=u'Někde', |
|
|
|
datum_zacatku=datetime.date(2000, 11, 23), |
|
|
|
datum_konce=datetime.date(2000, 11, 27) |
|
|
|
) |
|
|
|
|
|
|
|
for res in rnd.sample(resitele, 6): |
|
|
|
Soustredeni_Ucastnici.objects.create(resitel=res, soustredeni=sous) |
|
|
|