Skip to content

Commit

Permalink
sigh
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinorg committed Jan 28, 2025
1 parent 371f2fd commit e172c38
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions freezing/web/views/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import hashlib
import json
import os
import re
from datetime import timedelta
from decimal import Decimal
from pathlib import Path
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit e172c38

Please sign in to comment.