Fix lru cache error

This commit is contained in:
Peter Stockings
2025-12-24 11:39:45 +11:00
parent 3748f042e6
commit 9c587a3a6c

2
app.py
View File

@@ -464,7 +464,7 @@ def clamp(n: float, lo: float = 0.0, hi: float = 100.0) -> float:
return max(lo, min(hi, n)) return max(lo, min(hi, n))
@lru_cache(max_size=1024) @lru_cache(maxsize=1024)
def get_country_from_ip(ip): def get_country_from_ip(ip):
""" """
Fetch country code for an IP using a public API. Fetch country code for an IP using a public API.