Skip to content

Commit

Permalink
Fix entity scraping
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Apr 16, 2024
1 parent 3fc7c9f commit 2082783
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion srm_tools/guidestar_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class GuidestarAPI():
_headers = None

def __init__(self):
self.branch_cache = dict()
self.org_cache = kvfile.KVFile(location='guidestar_org_cache')
self.branch_cache = kvfile.KVFile(location='guidestar_branch_cache')
self.service_cache = kvfile.KVFile(location='guidestar_service_cache')
Expand Down Expand Up @@ -87,6 +86,8 @@ def fetchCaches(self):
for row in resp:
regNum = row['regNum']
self.org_cache.set(regNum, row)
self.branch_cache.set(regNum, [])
self.service_cache.set(regNum, [])
count += 1
if len(resp) == 0:
done = True
Expand Down

0 comments on commit 2082783

Please sign in to comment.