chore(linter): make ruff happy

This commit is contained in:
MingxuanGame
2025-09-20 10:41:15 +00:00
parent b834799a2d
commit ad78663ba0
4 changed files with 9 additions and 9 deletions

View File

@@ -115,9 +115,14 @@ class GeoIPHelper:
age_days = (time.time() - os.path.getmtime(path)) / 86400
if age_days >= self.max_age_days:
need = True
logger.info(f"[GeoIP] {eid} database is {age_days:.1f} days old (max: {self.max_age_days}), will download new version")
logger.info(
f"[GeoIP] {eid} database is {age_days:.1f} days old "
f"(max: {self.max_age_days}), will download new version"
)
else:
logger.info(f"[GeoIP] {eid} database is {age_days:.1f} days old, still fresh (max: {self.max_age_days})")
logger.info(
f"[GeoIP] {eid} database is {age_days:.1f} days old, still fresh (max: {self.max_age_days})"
)
else:
logger.info(f"[GeoIP] {eid} database not found, will download")