From 32fb3814b1ca58720c574dd7459f8ba79b046c1c Mon Sep 17 00:00:00 2001 From: Ranjan Shrestha Date: Thu, 1 Feb 2024 10:26:58 +0545 Subject: [PATCH] flake8 fixes; cleanups; --- analysis_module/mockserver.py | 1 - analysis_module/utils.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/analysis_module/mockserver.py b/analysis_module/mockserver.py index b6c87ae..5530df7 100644 --- a/analysis_module/mockserver.py +++ b/analysis_module/mockserver.py @@ -4,7 +4,6 @@ import requests import logging import random -import numpy as np from random import shuffle from math import ceil diff --git a/analysis_module/utils.py b/analysis_module/utils.py index 694daaa..9cbe2d9 100644 --- a/analysis_module/utils.py +++ b/analysis_module/utils.py @@ -160,7 +160,8 @@ def send_callback_url_request(callback_url: str, client_id: str, filepath: str, logging.error("No callback url found.") return json.dumps({"status": "No callback url found."}), 400 -def get_geolocations(excerpts: List[str], req_timeout: int=60): + +def get_geolocations(excerpts: List[str], req_timeout: int = 60): """ Get geolocations from excerpts by requesting from geolocation module """ if not GEOLOCATION_ECS_ENDPOINT: logging.error("The geolocation module endpoint not found.")