Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
9e50a808
Unverified
Commit
9e50a808
authored
Feb 14, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Feb 14, 2024
Browse files
Merge pull request #732 from ollama-webui/user-display-limit
fix: user display limit
parents
9704a575
434e2c00
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
backend/apps/web/models/users.py
backend/apps/web/models/users.py
+2
-1
backend/start.sh
backend/start.sh
+1
-1
No files found.
backend/apps/web/models/users.py
View file @
9e50a808
...
...
@@ -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
]:
...
...
backend/start.sh
View file @
9e50a808
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment