From 434e2c00e9105cf59caa97e9ac26defd7823ed64 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 14 Feb 2024 13:24:40 -0800 Subject: [PATCH] fix: user display limit --- backend/apps/web/models/users.py | 3 ++- backend/start.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/apps/web/models/users.py b/backend/apps/web/models/users.py index c6d8b38d8..255c701df 100644 --- a/backend/apps/web/models/users.py +++ b/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]: diff --git a/backend/start.sh b/backend/start.sh index c9f5a05b1..f9ed59485 100755 --- a/backend/start.sh +++ b/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 '*' \ No newline at end of file