diff --git a/app/location/__init__.py b/app/location/__init__.py index 1da5e9e5..ae9f07e4 100644 --- a/app/location/__init__.py +++ b/app/location/__init__.py @@ -11,22 +11,13 @@ class Location: # pylint: disable=too-many-instance-attributes """ def __init__( - self, id, country, province, coordinates, last_updated, confirmed, deaths, recovered, - ): # pylint: disable=too-many-arguments + self, id, country, province, coordinates): # pylint: disable=too-many-arguments # General info. self.id = id self.country = country.strip() self.province = province.strip() self.coordinates = coordinates - # Last update. - self.last_updated = last_updated - - # Statistics. - self.confirmed = confirmed - self.deaths = deaths - self.recovered = recovered - @property def country_code(self): """ @@ -73,6 +64,20 @@ def serialize(self): }, } + +class Last_Updated: + def __init__(last_updated): + self.last_updated = last_updated + + def set_updated(self): + +class Latest: + def __init__(confirmed, deaths, recovered): + self.confirmed = confirmed + self.deaths = deaths + self.recovered = recovered + + def set_latest(self): class TimelinedLocation(Location): """