From 209ccdf66884fc447017951ed5813b6073adf684 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 4 Aug 2024 17:35:26 +0200 Subject: [PATCH] refac --- backend/apps/webui/routers/chats.py | 2 +- src/lib/utils/index.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/apps/webui/routers/chats.py b/backend/apps/webui/routers/chats.py index 5ad9df573..39b2b2402 100644 --- a/backend/apps/webui/routers/chats.py +++ b/backend/apps/webui/routers/chats.py @@ -46,7 +46,7 @@ async def get_session_user_chat_list( user=Depends(get_verified_user), page: Optional[int] = None ): if page is not None: - limit = 20 + limit = 60 skip = (page - 1) * limit return Chats.get_chat_title_id_list_by_user_id(user.id, skip=skip, limit=limit) diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts index c4384c92d..9200de968 100644 --- a/src/lib/utils/index.ts +++ b/src/lib/utils/index.ts @@ -1,8 +1,6 @@ import { v4 as uuidv4 } from 'uuid'; import sha256 from 'js-sha256'; import { WEBUI_BASE_URL } from '$lib/constants'; -import { scrollPaginationEnabled, chats, currentChatPage } from '$lib/stores'; -import { getChatList } from '$lib/apis/chats'; ////////////////////////// // Helper functions