This commit is contained in:
Aevann1 2021-11-21 20:54:36 +02:00
parent 23869a522c
commit de2e848d94
10 changed files with 4 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

View file

@ -45,7 +45,7 @@ class Badge(Base):
@property @property
@lazy @lazy
def path(self): def path(self):
return f"/assets/images/badges/{self.name}.webp" return f"/assets/images/badges/{self.name.replace(' ','%20')}.webp"
@property @property
@lazy @lazy

View file

@ -139,7 +139,7 @@ def cached_chart():
@app.get("/patrons") @app.get("/patrons")
@app.get("/paypigs") @app.get("/paypigs")
@auth_desired @admin_level_required(3)
def patrons(v): def patrons(v):
query = g.db.query( query = g.db.query(
User.id, User.username, User.patron, User.namecolor, User.id, User.username, User.patron, User.namecolor,

View file

@ -55,7 +55,7 @@
{% for k, v in badge_types.items() %} {% for k, v in badge_types.items() %}
<tr> <tr>
<td><input type="radio" id="badge-{{k}}" name="badge_id" value="{{k}}"></td> <td><input type="radio" id="badge-{{k}}" name="badge_id" value="{{k}}"></td>
<td><label for="badge-{{k}}"><img loading="lazy" src="/assets/images/badges/{{v['name']}}.webp" width="70px" height="70px"></label></td> <td><label for="badge-{{k}}"><img loading="lazy" src="/assets/images/badges/{{v['name'].replace(' ','%20')}}.webp" width="70px" height="70px"></label></td>
<td>{{v['name']}}</td> <td>{{v['name']}}</td>
<td>{{v['description']}}</td> <td>{{v['description']}}</td>
</tr> </tr>

View file

@ -21,7 +21,7 @@
{% for k,v in badges.items() %} {% for k,v in badges.items() %}
<tr> <tr>
<td>{{v['name']}}</td> <td>{{v['name']}}</td>
<td><img loading="lazy" src="/assets/images/badges/{{v['name']}}.webp" width=50 height=50> <td><img loading="lazy" src="/assets/images/badges/{{v['name'].replace(' ','%20')}}.webp" width=50 height=50>
<td>{{v['description']}}</td> <td>{{v['description']}}</td>
</tr> </tr>
{% endfor %} {% endfor %}