mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-01 17:32:52 -05:00
refac
This commit is contained in:
1 parent
03f5191aca
commit
4ca8fdc3fd
2 files changed
+3
-2
No files matched your search
@@ -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())
|
||||
|
||||
@@ -293,4 +293,3 @@ async def create_app_interaction(
|
||||
source={'id': message.id, 'updated_at': message.updated_at},
|
||||
db=db,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user