From 4ca8fdc3fda3199c12fc3778cfc6525a6310367f Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 13 Oct 2026 01:55:12 +0400 Subject: [PATCH] refac --- backend/open_webui/models/apps.py | 4 +++- backend/open_webui/routers/apps.py | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/open_webui/models/apps.py b/backend/open_webui/models/apps.py index 82953b7cfd..7dcd894d61 100644 --- a/backend/open_webui/models/apps.py +++ b/backend/open_webui/models/apps.py @@ -223,7 +223,9 @@ class AppsTable: return None app.is_active = False app.api_key = None - app.data = {k: v for k, v in app.data.items() if k not in ('connection_token', 'installation_id', 'webui_url')} + app.data = { + k: v for k, v in app.data.items() if k not in ('connection_token', 'installation_id', 'webui_url') + } app.updated_at = max(time.time_ns(), app.updated_at + 1) await db.execute( update(ChannelMember).where(ChannelMember.app_id == id).values(is_active=False, left_at=time.time_ns()) diff --git a/backend/open_webui/routers/apps.py b/backend/open_webui/routers/apps.py index ee8de2db0c..beb2bb0f82 100644 --- a/backend/open_webui/routers/apps.py +++ b/backend/open_webui/routers/apps.py @@ -293,4 +293,3 @@ async def create_app_interaction( source={'id': message.id, 'updated_at': message.updated_at}, db=db, ) -