mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
Added retry call
This commit is contained in:
parent
f21d2778af
commit
95d714afbb
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ for i, job_title in enumerate(JOB_TITLES):
|
||||||
for _, location_config in tqdm(constituencies.iterrows(), total=constituencies.shape[0]):
|
for _, location_config in tqdm(constituencies.iterrows(), total=constituencies.shape[0]):
|
||||||
|
|
||||||
location = location_config["PCON22NM"]
|
location = location_config["PCON22NM"]
|
||||||
|
jobs = retry_api_call(job_title, location)
|
||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
if jobs["results"]:
|
if jobs["results"]:
|
||||||
for job in jobs['results']:
|
for job in jobs['results']:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue