Skip to content

Commit c3466d2

Browse files
committed
made changes to init file to work with location service adapter
1 parent 62bc59a commit c3466d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/data/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""app.data"""
2+
from app.services.location.locationServiceAdapter import Adapter
23
from ..services.location.csbs import CSBSLocationService
34
from ..services.location.jhu import JhuLocationService
45
from ..services.location.nyt import NYTLocationService
@@ -18,4 +19,5 @@ def data_source(source):
1819
:returns: The service.
1920
:rtype: LocationService
2021
"""
21-
return DATA_SOURCES.get(source.lower())
22+
23+
return Adapter(DATA_SOURCES.get(source.lower()))

0 commit comments

Comments
 (0)