[fix] Corrections ruff CI (UP017/UP041/UP012/I001/F401/FURB162) : backend/guide_export.py
This commit is contained in:
@@ -355,7 +355,7 @@ def _export_footer(lang: str) -> str:
|
|||||||
template = loc.get("guide105.export_footer", "")
|
template = loc.get("guide105.export_footer", "")
|
||||||
if "%s" not in template and "{" not in template:
|
if "%s" not in template and "{" not in template:
|
||||||
template = "ObsiGate {version}"
|
template = "ObsiGate {version}"
|
||||||
today = datetime.datetime.now(tz=datetime.timezone.utc).date().isoformat()
|
today = datetime.datetime.now(tz=datetime.UTC).date().isoformat()
|
||||||
return _collapse(template).format(version=_app_version(), date=today)
|
return _collapse(template).format(version=_app_version(), date=today)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user