1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 23:05:10 +01:00

Better total stats, now also info about nr bookmarks

This commit is contained in:
2016-08-13 16:18:51 +02:00
parent 72ad3c0d04
commit bb258a2a68
2 changed files with 30 additions and 12 deletions

View File

@@ -425,8 +425,9 @@ def tags(userkey):
total = Bookmark.select().where(Bookmark.userkey == userkey, Bookmark.tags.contains(tag), Bookmark.status == Bookmark.VISIBLE).count()
alltags.append({'tag': tag, 'publictag': publictag, 'total': total})
total = len(alltags)
return render_template('tags.html', tags=alltags, total=total, userkey=userkey)
totaltags = len(alltags)
totalbookmarks = Bookmark.select().where(Bookmark.userkey == userkey).count()
return render_template('tags.html', tags=alltags, totaltags=totaltags, totalbookmarks=totalbookmarks, userkey=userkey)
@app.route('/<userkey>/tag/<tag>')