1
0
mirror of https://codeberg.org/diginaut/digimarks.git synced 2026-02-04 17:20:27 +01:00

Stats on total public tag pages

This commit is contained in:
2016-08-13 16:23:38 +02:00
parent 1b513e98b2
commit 2e031db2a7
2 changed files with 10 additions and 1 deletions

View File

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