Skip to content
Martin Landa edited this page Nov 4, 2021 · 27 revisions

Krok 1 - generovat sestavu

gen = genererujCenoveUdajeDleKU()
gen.paramaters = { 'ku': 73892, 'rok': 2020, 'mesic_od': 1, 'mesic_do': 3 }

@property
def parameters(self):
   ...

@property
def id(self):
   ... parse xml and return id

or

gen.get_paramaters_from_file('params.json')

{ 'ku': 73892, 'rok': 2020, 'mesic_od: 1, 'mesic_do: 2 }


## Krok 2 - seznam sestav

```py
sez = seznamSestav(gen.id)

ctios

[
"m+o3Qoxrit4ZwyJIPjx3X788EOgtJieiZYw/eqwxTPERjsqLramxBhGoAaAnooYAliQoVBYy7Q7fN2cVAxsAoUoPFaReqsfYWOZJjMBj/6Q=",
"\nmSH6sS5yv6vA2jEOtyHeXaXIJpC2m0Ai56aKzsVmEphUNyjFQYgC8MOLnu3+3Zugm8JQW2AJqEJYcSiqXdPbnb/03PKgyNkYWaS876wv0tg="
]
Clone this wiki locally