We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62bc59a commit c3466d2Copy full SHA for c3466d2
app/data/__init__.py
@@ -1,4 +1,5 @@
1
"""app.data"""
2
+from app.services.location.locationServiceAdapter import Adapter
3
from ..services.location.csbs import CSBSLocationService
4
from ..services.location.jhu import JhuLocationService
5
from ..services.location.nyt import NYTLocationService
@@ -18,4 +19,5 @@ def data_source(source):
18
19
:returns: The service.
20
:rtype: LocationService
21
"""
- return DATA_SOURCES.get(source.lower())
22
+
23
+ return Adapter(DATA_SOURCES.get(source.lower()))
0 commit comments