From e172c38290bdf0afb89e6b5529ca3f7cb54fb95c Mon Sep 17 00:00:00 2001 From: merlin Date: Tue, 28 Jan 2025 17:39:20 -0500 Subject: [PATCH] sigh --- freezing/web/views/api.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/freezing/web/views/api.py b/freezing/web/views/api.py index 070536c..78fbd23 100644 --- a/freezing/web/views/api.py +++ b/freezing/web/views/api.py @@ -3,7 +3,6 @@ import hashlib import json import os -import re from datetime import timedelta from decimal import Decimal from pathlib import Path @@ -463,7 +462,11 @@ def track_map_all(): key_str = hash_tag or ride_ids key = ( - hashlib.md5(key_str.encode("utf-8"), usedforsecurity=False) if key_str else None + hashlib.md5( + key_str.encode("utf-8"), usedforsecurity=False + ) # nosec B303 - not used for security + if key_str + else None ) return _make_gzip_json_response( _get_cached(