1
0
Fork 0
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:
Marc 2019-01-07 23:45:27 +01:00
parent 2eb11c92fe
commit 4cf895ce41
3 changed files with 88 additions and 75 deletions

View file

@ -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: