master
Aevann1 2021-12-20 17:17:43 +02:00
parent 14f9a49237
commit 31d6db46fd
5 changed files with 9 additions and 9 deletions

View File

@ -50,9 +50,9 @@ def sex(v):
email=f"{email}@gmail.com"
emails.append(email.lower())
users = g.db.query(User).filter(User.patron > 0, User.patron < 5, User.email != None).all()
users = g.db.query(User).filter(User.patron > 0, User.patron < 5).all()
for u in users:
if u.email.lower() not in emails: print(u.username)
if not u.email or u.email.lower() not in emails: print(u.username)
return "sex"

View File

@ -180,12 +180,12 @@ def admins(v):
@auth_desired
def log(v):
page = int(request.args.get("page",1))
admin = request.args.get("admin")
page = int(request.values.get("page",1))
admin = request.values.get("admin")
if admin: admin_id = get_id(admin)
else: admin_id = 0
kind = request.args.get("kind")
kind = request.values.get("kind")
if v and v.admin_level > 1: types = ACTIONTYPES
else: types = ACTIONTYPES2

View File

@ -41,7 +41,7 @@
</div>
<div class="relative hidden sm:flex flex-shrink-0 items-center sm:ml-6">
<form action="/search/posts/" method="get" class="relative mb-0">
<input placeholder="Search" class="w-full text-gray-500 focus:text-black rounded border border-gray-800 bg-black/20 focus:bg-white hover:bg-black/30 shadow-inner w-full px-2 py-1.5 pr-7" aria-label="Search" name="q" value="{{request.args.get('q', '')}}">
<input placeholder="Search" class="w-full text-gray-500 focus:text-black rounded border border-gray-800 bg-black/20 focus:bg-white hover:bg-black/30 shadow-inner w-full px-2 py-1.5 pr-7" aria-label="Search" name="q" value="{{request.values.get('q', '')}}">
<i class="fas fa-search text-gray-600 absolute top-3 right-2"></i>
</form>
</div>
@ -139,7 +139,7 @@
<div class="offcanvas-body">
<!-- Search box -->
<form action="/search/posts/" method="get" class="relative mb-4">
<input placeholder="Search" class="block w-full rounded shadow-inner py-2 pl-2 pr-7 bg-white border border-gray-300 hover:border-gray-400 focus:border-blue-300 focus:ring focus:ring-blue-200 focus:ring-opacity-50" aria-label="Search" name="q" value="{{request.args.get('q', '')}}">
<input placeholder="Search" class="block w-full rounded shadow-inner py-2 pl-2 pr-7 bg-white border border-gray-300 hover:border-gray-400 focus:border-blue-300 focus:ring focus:ring-blue-200 focus:ring-opacity-50" aria-label="Search" name="q" value="{{request.values.get('q', '')}}">
<i class="fas fa-search text-gray-400 absolute top-3 right-3"></i>
</form>
{% if v %}

View File

@ -18,7 +18,7 @@
</div>
<div class="flex-grow-1 d-fl d-none d-md-block">
<form class="form-inline search flex-nowrap mx-0 mx-lg-auto" action="/search/posts/" method="get">
<input class="form-control w-100" type="search" placeholder="Search" aria-label="Search" name="q" value="{{request.args.get('q', '')}}">
<input class="form-control w-100" type="search" placeholder="Search" aria-label="Search" name="q" value="{{request.values.get('q', '')}}">
<span class="input-group-append">
<span class="input-group-text border-0 bg-transparent" style="margin-left: -2.5rem;">
<i class="fa fa-search" aria-hidden="true"></i>

View File

@ -18,7 +18,7 @@
</div>
<div class="flex-grow-1 d-fl d-none d-md-block">
<form class="form-inline search flex-nowrap mx-0 mx-lg-auto" action="/search/posts/" method="get">
<input class="form-control w-100" type="search" placeholder="Search" aria-label="Search" name="q" value="{{request.args.get('q', '')}}">
<input class="form-control w-100" type="search" placeholder="Search" aria-label="Search" name="q" value="{{request.values.get('q', '')}}">
<span class="input-group-append">
<span class="input-group-text border-0 bg-transparent" style="margin-left: -2.5rem;">
<i class="fa fa-search" aria-hidden="true"></i>