Fix lru cache error
This commit is contained in:
2
app.py
2
app.py
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user