fix last commit

pull/132/head
Aevann 2023-02-22 16:43:39 +02:00
parent 42ed35770c
commit bd97dc7d5f
2 changed files with 2 additions and 4 deletions

View File

@ -54,8 +54,8 @@ def dm_images(v):
firstrange = PAGE_SIZE * (page - 1)
secondrange = firstrange + PAGE_SIZE + 1
posts = items[firstrange:secondrange]
next_exists = (len(posts) > PAGE_SIZE)
items = items[firstrange:secondrange]
next_exists = (len(items) > PAGE_SIZE)
return render_template("admin/dm_images.html", v=v, items=items, next_exists=next_exists, page=page)

View File

@ -6,7 +6,6 @@
<table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>#</th>
<th>Image</th>
<th>Sender</th>
<th>Sent To</th>
@ -15,7 +14,6 @@
{% for item in items %}
<tr>
<td>{{loop.index}}</td>
<td>
<a href="{{item[0]}}" target="_blank">
<img alt="![]({{item[0]}})" src="{{item[0]}}" loading="lazy" class="dm_img">