1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-07 00:15:10 +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}) alltags.append({'tag': tag, 'publictag': publictag, 'total': total})
totaltags = len(alltags) totaltags = len(alltags)
totalbookmarks = Bookmark.select().where(Bookmark.userkey == userkey).count() 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>') @app.route('/<userkey>/tag/<tag>')

View File

@@ -21,6 +21,14 @@
{{ totaltags }} {{ totaltags }}
</td> </td>
</tr> </tr>
<tr>
<td>
Public tag pages
</td>
<td>
{{ totalpublic }}
</td>
</tr>
<tr> <tr>
<td> <td>
Bookmarks Bookmarks