From 925f77f0f56d91edc0774588be5465287af866f1 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 26 Mar 2026 18:25:19 -0500 Subject: [PATCH] chore: format --- backend/open_webui/utils/auth.py | 1 + src/lib/components/AddTerminalServerModal.svelte | 15 ++++++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/backend/open_webui/utils/auth.py b/backend/open_webui/utils/auth.py index c55a8e2c1..34412d604 100644 --- a/backend/open_webui/utils/auth.py +++ b/backend/open_webui/utils/auth.py @@ -148,6 +148,7 @@ def get_license_data(app, key): if exp: if isinstance(exp, str): from datetime import date + exp = date.fromisoformat(exp) if exp < datetime.now().date(): return False diff --git a/src/lib/components/AddTerminalServerModal.svelte b/src/lib/components/AddTerminalServerModal.svelte index f5b1612ee..e7c0236eb 100644 --- a/src/lib/components/AddTerminalServerModal.svelte +++ b/src/lib/components/AddTerminalServerModal.svelte @@ -12,7 +12,11 @@ import LockClosed from '$lib/components/icons/LockClosed.svelte'; import Tooltip from '$lib/components/common/Tooltip.svelte'; import ConfirmDialog from '$lib/components/common/ConfirmDialog.svelte'; - import { detectTerminalServerType, verifyTerminalServerConnection, putOrchestratorPolicy } from '$lib/apis/configs'; + import { + detectTerminalServerType, + verifyTerminalServerConnection, + putOrchestratorPolicy + } from '$lib/apis/configs'; import { getTerminalConfig } from '$lib/apis/terminal'; export let show = false; @@ -112,10 +116,11 @@ try { if (!direct) { // System connection: proxy through backend to avoid CORS / key exposure - const result = await verifyTerminalServerConnection( - localStorage.token, - { url: _url, key, auth_type } - ); + const result = await verifyTerminalServerConnection(localStorage.token, { + url: _url, + key, + auth_type + }); const type = result?.type ?? null; if (type) {