We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3987b3c commit a0dffbdCopy full SHA for a0dffbd
app/data/__init__.py
@@ -6,12 +6,13 @@
6
7
# Mapping of services to data-sources.
8
class DATA_SOURCES:
9
- DATA_SOURCES = {}
+ data_SOURCES = {}
10
11
- def data(self)
12
- self.DATA_SOURCES['jhu'] = JhuLocationService()
13
- self.DATA_SOURCES['csbs'] = CSBSLocationService()
14
- self.DATA_SOURCES['nyt'] = NYTLocationService()
+ def data(self):
+ self.data_SOURCES['jhu'] = JhuLocationService()
+ self.data_SOURCES['csbs'] = CSBSLocationService()
+ self.data_SOURCES['nyt'] = NYTLocationService()
15
16
- def data_source(self, source : str)-> LocationService:
17
- return self.DATA_SOURCES.get(source.lower())
+ def data_source(self, source: str)-> LocationService:
+
18
+ return self.data_SOURCES.get(source.lower())
0 commit comments