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")

View File

@@ -436,5 +436,3 @@ async def get_user_scores(
# 处理资源代理
processed_scores = await process_response_assets(score_responses, request)
return processed_scores

View File

@@ -65,7 +65,6 @@ class AssetProxyService:
r"https://a\.ppy\.sh/", f"https://{self.avatar_proxy_prefix}.{self.custom_asset_domain}/", result
)
return result
else:
return data