|
|
@ -59,6 +59,8 @@ async def search():
|
|
|
|
users = [u for u in await User.search(needle)]
|
|
|
|
users = [u for u in await User.search(needle)]
|
|
|
|
if users:
|
|
|
|
if users:
|
|
|
|
return await render_template('search_results.html', users=users)
|
|
|
|
return await render_template('search_results.html', users=users)
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
return await render_template('search_results.html')
|
|
|
|
|
|
|
|
|
|
|
|
users = [u for u in User.select()]
|
|
|
|
users = [u for u in User.select()]
|
|
|
|
return await render_template('search.html', users=users)
|
|
|
|
return await render_template('search.html', users=users)
|
|
|
|