Closed jdemaeyer closed 5 years ago
I've been looking into this issue and I found that you can use .normalized_projects
to get that functionallity:
In [2]: load_shub_config().normalized_projects
Out[2]: {'default': {'id': 12345, 'endpoint': 'default', 'apikey': 'default'}, 'prod': {'id': 33333, 'stack': 'scrapy:1.1', 'endpoint': 'default', 'apikey': 'default'}}
Is this issue still valid?
You're right, it seems it's not, thanks for checking :+1:
Currently,
conf.projects
can contain a mixture of integers and dictionaries. E.g., the configuration fileWould lead to
We should normalize all projects to dictionaries when loading configuration data. However, the syntactic sugar in
scrapinghub.yml
should remain.