chore: format

This commit is contained in:
Timothy Jaeryang Baek committed 2025-07-19 18:57:59 +04:00
1 parent 4364dac226
commit 81f8187e57
63 files changed
+748 -60

No files matched your search

+11
View File
@@ -689,6 +689,17 @@ load_oauth_providers()
STATIC_DIR = Path(os.getenv("STATIC_DIR", OPEN_WEBUI_DIR / "static")).resolve()
try:
if STATIC_DIR.exists():
for item in STATIC_DIR.iterdir():
if item.is_file() or item.is_symlink():
try:
item.unlink()
except Exception as e:
pass
except Exception as e:
pass
for file_path in (FRONTEND_BUILD_DIR / "static").glob("**/*"):
if file_path.is_file():
target_path = STATIC_DIR / file_path.relative_to(