Odstraněn zakomentovaný zbytečně složitý kód
This commit is contained in:
parent
a6220e8d50
commit
b44bdadb0a
1 changed files with 0 additions and 6 deletions
|
@ -33,12 +33,8 @@ def gen_soustredeni(
|
|||
datum_konce=datum_zacatku + datetime.timedelta(days=7))
|
||||
ucastnici = rnd.sample(resitele, min(len(resitele), 20))
|
||||
working_sous.ucastnici.set(ucastnici)
|
||||
# for res in rnd.sample(resitele, min(len(resitele), 20)):
|
||||
# Soustredeni_Ucastnici.objects.create(resitel=res, soutredeni=working_sous)
|
||||
orgove_vyber = rnd.sample(organizatori, min(len(organizatori), 20))
|
||||
working_sous.organizatori.set(orgove_vyber)
|
||||
# for org in rnd.sample(organizatori, min(len(organizatori), 20)):
|
||||
# Soustredeni_Organizatori.objects.create(organizator=org, soutredeni=working_sous)
|
||||
working_sous.save()
|
||||
soustredeni.append(working_sous)
|
||||
return soustredeni
|
||||
|
@ -68,8 +64,6 @@ def gen_konfery(
|
|||
ucastnici_sous = list(konfera.soustredeni.ucastnici.all())
|
||||
ucastnici = rnd.sample(ucastnici_sous, min(len(ucastnici_sous), rnd.randint(3, 6)))
|
||||
konfera.ucastnici.set(ucastnici)
|
||||
# for res in rnd.sample(ucastnici, min(len(ucastnici), rnd.randint(3, 6))):
|
||||
# Konfery_Ucastnici.objects.create(resitel=res, konfera=konfera)
|
||||
konfera.save()
|
||||
konfery.append(konfera)
|
||||
return konfery
|
||||
|
|
Loading…
Reference in a new issue