Skip to content

Commit bbfa0cc

Browse files
Updated UI and internal implementation
1 parent e4a98c1 commit bbfa0cc

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

lib/convida.py

+5-8
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,20 @@ def get_data_types(cls):
4444
for data_type in DataType:
4545
data_types.append(str(data_type))
4646
return data_types
47-
48-
47+
4948
@classmethod
5049
def get_sources_info(cls):
5150
"""
5251
Prints and returns a dictionary with the metadata about the supported data sources
5352
"""
5453
if not cls.__DATA_SOURCES_INITIALIZED:
5554
cls.__init_data_sources()
56-
55+
5756
sources_info = {}
5857
for DATA_SOURCE_CLASS in cls.__DATA_SOURCE_CLASSES:
5958
info = DATA_SOURCE_CLASS()._get_source_info()
6059
sources_info[info[0]] = info[1:]
6160
return sources_info
62-
6361

6462
@classmethod
6563
def get_data_items(cls, data_items='all', regions='ES', start_date=None, end_date=None, language='ES',
@@ -382,21 +380,20 @@ def _get_internal_names_mapping(cls, data_type: DataType, display_names, languag
382380
return internalnames_displaynames_dic
383381

384382
## private methods
385-
386-
383+
387384
@classmethod
388385
def _get_update_frequencies(cls):
389386
"""
390387
Returns a dictionary with the update frequency of the data sources
391388
"""
392389
if not cls.__DATA_SOURCES_INITIALIZED:
393390
cls.__init_data_sources()
394-
391+
395392
update_freq = {}
396393
for DATA_SOURCE_CLASS in cls.__DATA_SOURCE_CLASSES:
397394
name, freq = DATA_SOURCE_CLASS()._get_update_frequency()
398395
update_freq[name] = freq
399-
396+
400397
return update_freq
401398

402399
@classmethod

0 commit comments

Comments
 (0)