Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop ol-solr-updater from spinning #281

Merged
merged 2 commits into from
Mar 24, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion openlibrary/solr/update_work.py
Original file line number Diff line number Diff line change
Expand Up @@ -1789,7 +1789,8 @@ def load_configs(c_host,c_config,c_data_provider):
conf_file = c_config

global _ia_db
_ia_db = get_ia_db(config.runtime_config['ia_db'])
if ('ia_db' in config.runtime_config.keys()):
_ia_db = get_ia_db(config.runtime_config['ia_db'])

global data_provider
if data_provider == None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably change this to is None while we're at it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh did not notice that PEP 8 says to use is None instead of None.

Expand Down