Skip to content

Commit

Permalink
flake8 fixes;
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjan-stha committed Jun 28, 2024
1 parent 907d48c commit dfa4263
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions analysis_module/mockserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@
logger.setLevel(logging.INFO)


def get_entries_data(url: str, timeout: int=30) -> Any:
def get_entries_data(url: str, timeout: int = 30) -> Any:
"""get data"""
response = requests.get(url, timeout=timeout)
return response.json() #json.loads(response.text)
#return entries_data
return response.json()


def save_data_local_and_get_url(dir_name: str, client_id: str, data: Any) -> str:
Expand Down
1 change: 1 addition & 0 deletions analysis_module/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ 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):
""" Get geolocations from excerpts by requesting from geolocation module """
if not GEOLOCATION_ECS_ENDPOINT:
Expand Down

0 comments on commit dfa4263

Please sign in to comment.