Skip to content

Commit d2bdb0a

Browse files
committed
apply bridge pattern under app/services/location directory. class csbs.py, jhu.py, nyt.py implements the interface DataSourcesInterface in sourcelocations.py. Add BasicLocationService class to implement the LocationService class. LocationService class in __init__.py get a new constructor method. And apply BasicLocationService in app/data/__init__.py
1 parent b64e6c4 commit d2bdb0a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

app/services/location/basiclocationservice.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ class BasicLocationService(LocationService):
66
"""
77
Service for retrieving locations from csbs
88
"""
9-
109
async def get_all(self):
1110
# Get the locations.
1211
locations = await self.dataSource.get_locations()

0 commit comments

Comments
 (0)