fix typo in the full re-indexer + abandon update if no new profiles

This commit is contained in:
Aaron Blankstein
2017-08-23 09:23:35 -04:00
parent 0310926e99
commit ec4c6e1492

View File

@@ -124,6 +124,9 @@ def update_profiles():
names_updated = actually_updated_names
if len(names_updated) == 0:
return {'status' : True, 'message' : 'No new profiles'}
with open(SEARCH_PROFILE_DATA_FILE, 'r') as fin:
all_profiles = json.load(fin)
existing_names = list(existing_names)
@@ -160,7 +163,7 @@ def fetch_profiles(max_to_fetch = None, just_test_set = False):
"""
with open(SEARCH_BLOCKCHAIN_DATA_FILE, 'r') as fin:
all_names = json.load(file)
all_names = json.load(fin)
info_resp = proxy.getinfo()
last_block_processed = info_resp['last_block_processed']