Added retry call

This commit is contained in:
Khalim Conn-Kowlessar 2023-06-29 16:55:05 +01:00
parent f21d2778af
commit 95d714afbb

View file

@ -71,7 +71,7 @@ for i, job_title in enumerate(JOB_TITLES):
for _, location_config in tqdm(constituencies.iterrows(), total=constituencies.shape[0]):
location = location_config["PCON22NM"]
jobs = retry_api_call(job_title, location)
time.sleep(0.5)
if jobs["results"]:
for job in jobs['results']: