Skip to content

Commit

Permalink
Fixed URL assignment in Image Grabber
Browse files Browse the repository at this point in the history
  • Loading branch information
johncanthony committed Sep 12, 2024
1 parent 7cd5835 commit 163c9c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ImageGrabber/imageGrabber/grabber.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ def run():
log.error(f'Invalid region: {new_job.region}')
return

request_base_url = regionalURLManager[new_job.region]
if new_job.region == "storm":
request_base_url = request_base_url.format(new_job.storm_id)
log.debug(f'Storm region set. Added storm_id : {new_job.storm_id}. Updated URL: {request_base_url}')
grab_images(job=new_job, request_base_url=regionalURLManager[new_job.region])

if new_job.job_status == "error":
Expand Down

0 comments on commit 163c9c4

Please sign in to comment.