Skip to content
Prev Previous commit
The Creational factory pattern which uses the logic of the location c…
…lass in file __init__.py to apply the factory design pattern
  • Loading branch information
codex-spec committed Aug 15, 2021
commit 868928f341eb6c08beab5c909e5289db79f98d9c
4 changes: 2 additions & 2 deletions app/location/creationalBP.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

class DataLocation:

def __init__ (self, id, country, province, coordinates, last_updated, confirmed, deaths, recovered,
):
def __init__ (self, id, country, province, coordinates, last_updated, confirmed, deaths, recovered,
):

self.id = id
self.country = country.strip()
Expand Down