diff --git a/digimarks.py b/digimarks.py index 83bed0d..7cdd186 100644 --- a/digimarks.py +++ b/digimarks.py @@ -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('//tag/') diff --git a/templates/tags.html b/templates/tags.html index 09d7506..03f4f56 100644 --- a/templates/tags.html +++ b/templates/tags.html @@ -21,6 +21,14 @@ {{ totaltags }} + + + Public tag pages + + + {{ totalpublic }} + + Bookmarks