Commit 434e2c00 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: user display limit

parent 9704a575
...@@ -92,7 +92,8 @@ class UsersTable: ...@@ -92,7 +92,8 @@ class UsersTable:
def get_users(self, skip: int = 0, limit: int = 50) -> List[UserModel]: def get_users(self, skip: int = 0, limit: int = 50) -> List[UserModel]:
return [ return [
UserModel(**model_to_dict(user)) 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]: def get_num_users(self) -> Optional[int]:
......
...@@ -19,4 +19,4 @@ if test "$WEBUI_SECRET_KEY $WEBUI_JWT_SECRET_KEY" = " "; then ...@@ -19,4 +19,4 @@ if test "$WEBUI_SECRET_KEY $WEBUI_JWT_SECRET_KEY" = " "; then
WEBUI_SECRET_KEY=`cat $KEY_FILE` WEBUI_SECRET_KEY=`cat $KEY_FILE`
fi 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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment