diff --git a/scripts/fetch_public_recycling_points.py b/scripts/fetch_public_recycling_points.py index 1fd3887..9aaa479 100644 --- a/scripts/fetch_public_recycling_points.py +++ b/scripts/fetch_public_recycling_points.py @@ -85,7 +85,7 @@ def main(): as JSON to file. """ args = parse_args() - res = requests.get(MAP_QUERY_URL, PARAMS, headers=HEADERS) + res = requests.get(MAP_QUERY_URL, PARAMS, headers=HEADERS, timeout=60000) if res.status_code == HTTP_STATUS_OK: with open(args.out_path, "w", encoding="utf8") as file: file.write(json.dumps(res.json(), indent=2)) diff --git a/scripts/fetch_street_images.py b/scripts/fetch_street_images.py index 71433b9..e0073c1 100644 --- a/scripts/fetch_street_images.py +++ b/scripts/fetch_street_images.py @@ -107,7 +107,7 @@ def download_image(image): "return_error_code": "true", "key": API_KEY, } - res = requests.get(API_URL, params) + res = requests.get(API_URL, params, timeout=60000) if res.status_code == HTTP_STATUS_OK: with open(Path(image["path"]), "wb") as file: file.write(res.content) diff --git a/scripts/plot_plan.py b/scripts/plot_plan.py index 6769c2d..b3fadb1 100644 --- a/scripts/plot_plan.py +++ b/scripts/plot_plan.py @@ -1,3 +1,5 @@ +# pylint: disable=use-dict-literal + """ This script produces a Gantt chart that illustrates the project plan. """