mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
refactor: Enable G logging rules and comprehensive ruff improvements (#35081)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
committed by
GitHub
parent
e1a2e4843a
commit
088ecdd0bf
@@ -47,8 +47,9 @@ class ThemeDAO(BaseDAO[Theme]):
|
||||
|
||||
if len(system_defaults) > 1:
|
||||
logger.warning(
|
||||
f"Multiple system default themes found ({len(system_defaults)}), "
|
||||
"falling back to config theme"
|
||||
"Multiple system default themes found (%s), "
|
||||
"falling back to config theme",
|
||||
len(system_defaults),
|
||||
)
|
||||
|
||||
# Fallback to is_system=True theme with name 'THEME_DEFAULT'
|
||||
@@ -75,8 +76,8 @@ class ThemeDAO(BaseDAO[Theme]):
|
||||
|
||||
if len(system_darks) > 1:
|
||||
logger.warning(
|
||||
f"Multiple system dark themes found ({len(system_darks)}), "
|
||||
"falling back to config theme"
|
||||
"Multiple system dark themes found (%s), falling back to config theme",
|
||||
len(system_darks),
|
||||
)
|
||||
|
||||
# Fallback to is_system=True theme with name 'THEME_DARK'
|
||||
|
||||
Reference in New Issue
Block a user