mirror of
https://github.com/LaQuay/TDTChannels.git
synced 2025-06-02 02:30:42 +02:00
Adapt to new model (WIP)
This commit is contained in:
parent
2eb11c92fe
commit
4cf895ce41
3 changed files with 88 additions and 75 deletions
script
|
@ -6,6 +6,12 @@ class Country:
|
|||
def add_ambit(self, ambit):
|
||||
self.ambits.append(ambit)
|
||||
|
||||
def get_ambit(self, ambit_to_get):
|
||||
for ambit in self.ambits:
|
||||
if ambit.name == ambit_to_get.name:
|
||||
return ambit
|
||||
return None
|
||||
|
||||
def __ambits_to_json__(self):
|
||||
ambits_list = []
|
||||
for ambit in self.ambits:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue