浏览代码

fix: user display limit

Timothy J. Baek 1 年之前
父节点
当前提交
434e2c00e9
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 1
      backend/apps/web/models/users.py
  2. 1 1
      backend/start.sh

+ 2 - 1
backend/apps/web/models/users.py

@@ -92,7 +92,8 @@ class UsersTable:
     def get_users(self, skip: int = 0, limit: int = 50) -> List[UserModel]:
         return [
             UserModel(**model_to_dict(user))
-            for user in User.select().limit(limit).offset(skip)
+            for user in User.select()
+            # .limit(limit).offset(skip)
         ]
 
     def get_num_users(self) -> Optional[int]:

+ 1 - 1
backend/start.sh

@@ -19,4 +19,4 @@ if test "$WEBUI_SECRET_KEY $WEBUI_JWT_SECRET_KEY" = " "; then
   WEBUI_SECRET_KEY=`cat $KEY_FILE`
 fi
 
-WEBUI_SECRET_KEY="$WEBUI_SECRET_KEY" exec uvicorn main:app --host 0.0.0.0 --port "$PORT" --forwarded-allow-ips '*'
+WEBUI_SECRET_KEY="$WEBUI_SECRET_KEY" exec uvicorn main:app --host 0.0.0.0 --port "$PORT" --forwarded-allow-ips '*'