lower() the searches

This commit is contained in:
dsc 2022-03-17 09:13:31 +02:00
parent 0dc31d47b2
commit d7ce4c9283
2 changed files with 2 additions and 0 deletions

View file

@ -74,6 +74,7 @@ async def search():
async def user_page(name: str):
if not name or len(name) <= 1:
raise Exception("invalid name")
name = name.lower()
try:
_user = User.select().where(