mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 23:05:10 +01:00
Stats on bookmarks without http status 200 OK
This commit is contained in:
@@ -438,10 +438,12 @@ def tags(userkey):
|
|||||||
totaltags = len(alltags)
|
totaltags = len(alltags)
|
||||||
totalbookmarks = Bookmark.select().where(Bookmark.userkey == userkey, Bookmark.status == Bookmark.VISIBLE).count()
|
totalbookmarks = Bookmark.select().where(Bookmark.userkey == userkey, Bookmark.status == Bookmark.VISIBLE).count()
|
||||||
totalpublic = PublicTag.select().where(PublicTag.userkey == userkey).count()
|
totalpublic = PublicTag.select().where(PublicTag.userkey == userkey).count()
|
||||||
totaldeleted = Bookmark.select().where(Bookmark.userkey == userkey, Bookmark.status == Bookmark.DELETED).count()
|
|
||||||
totalstarred = Bookmark.select().where(Bookmark.userkey == userkey, Bookmark.starred == True).count()
|
totalstarred = Bookmark.select().where(Bookmark.userkey == userkey, Bookmark.starred == True).count()
|
||||||
|
totaldeleted = Bookmark.select().where(Bookmark.userkey == userkey, Bookmark.status == Bookmark.DELETED).count()
|
||||||
|
totalhttperrorstatus = Bookmark.select().where(Bookmark.userkey == userkey, Bookmark.http_status != 200).count()
|
||||||
return render_template('tags.html', tags=alltags, totaltags=totaltags, totalpublic=totalpublic, totalbookmarks=totalbookmarks,
|
return render_template('tags.html', tags=alltags, totaltags=totaltags, totalpublic=totalpublic, totalbookmarks=totalbookmarks,
|
||||||
totaldeleted=totaldeleted, totalstarred=totalstarred, userkey=userkey)
|
totaldeleted=totaldeleted, totalstarred=totalstarred, totalhttperrorstatus=totalhttperrorstatus,
|
||||||
|
userkey=userkey)
|
||||||
|
|
||||||
|
|
||||||
@app.route('/<userkey>/tag/<tag>')
|
@app.route('/<userkey>/tag/<tag>')
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
<th><i class="material-icons green-text" title="Public tag pages">present_to_all</i></th>
|
<th><i class="material-icons green-text" title="Public tag pages">present_to_all</i></th>
|
||||||
<th><i class="material-icons" title="Total bookmarks">turned_in</i></th>
|
<th><i class="material-icons" title="Total bookmarks">turned_in</i></th>
|
||||||
<th><i class="material-icons yellow-text" title="Starred bookmarks">star</i></th>
|
<th><i class="material-icons yellow-text" title="Starred bookmarks">star</i></th>
|
||||||
|
<th><i class="material-icons orange-text" title="HTTP status is not 200 OK">warning</i></th>
|
||||||
<th><i class="material-icons red-text" title="Deleted bookmarks">delete</i></th>
|
<th><i class="material-icons red-text" title="Deleted bookmarks">delete</i></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -21,6 +22,7 @@
|
|||||||
<td>{{ totalpublic }}</td>
|
<td>{{ totalpublic }}</td>
|
||||||
<td>{{ totalbookmarks }}</td>
|
<td>{{ totalbookmarks }}</td>
|
||||||
<td>{{ totalstarred }}</td>
|
<td>{{ totalstarred }}</td>
|
||||||
|
<td>{{ totalhttperrorstatus }}</td>
|
||||||
<td>{{ totaldeleted }}</td>
|
<td>{{ totaldeleted }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
Reference in New Issue
Block a user