File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed
Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change 11"""app.data"""
2- #from ..services.location.csbs import CSBSLocationService
3- #from ..services.location.jhu import JhuLocationService
4- #from ..services.location.nyt import NYTLocationService
5- from ..services .location .locationFactory import LocationServiceFactory
62
7- # Mapping of services to data-sources.
8- """
9- DATA_SOURCES = {
10- "jhu": JhuLocationService(),
11- "csbs": CSBSLocationService(),
12- "nyt": NYTLocationService(),
13- }
14- """
3+ from ..services .location .Singleton import LocationService
4+
155
166def data_source (source ):
177 """
@@ -21,7 +11,7 @@ def data_source(source):
2111 :rtype: LocationService
2212 """
2313
24- location = LocationServiceFactory ()
14+ location = LocationService ()
2515
2616 if source .lower () == "csbs" :
2717 return location .createCSBS ()
@@ -30,4 +20,3 @@ def data_source(source):
3020 else :
3121 return location .createJHU ()
3222
33- #return DATA_SOURCES.get(source.lower())
You can’t perform that action at this time.
0 commit comments