Refactor geo caching and service layer tests
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -717,7 +717,13 @@ class GeoCache:
|
||||
self._dirty.clear()
|
||||
|
||||
rows = [
|
||||
(ip, self._cache[ip].country_code, self._cache[ip].country_name, self._cache[ip].asn, self._cache[ip].org)
|
||||
(
|
||||
ip,
|
||||
self._cache[ip].country_code,
|
||||
self._cache[ip].country_name,
|
||||
self._cache[ip].asn,
|
||||
self._cache[ip].org,
|
||||
)
|
||||
for ip in to_flush
|
||||
if ip in self._cache
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user