]> git.ipfire.org Git - ipfire.org.git/blobdiff - webapp/handlers_planet.py
planet: Add a view counter for the posts
[ipfire.org.git] / webapp / handlers_planet.py
index 162359e9094b7623c3ab0cf3538b39a3d8fffc4f..cd8cf348e7a95b4027ce8280e04e2f1147887326 100644 (file)
@@ -43,6 +43,9 @@ class PlanetPostingHandler(PlanetBaseHandler):
                if not entry:
                        raise tornado.web.HTTPError(404)
 
+               # Update the view counter
+               entry.increase_view_counter()
+
                self.render("planet/posting.html",
                        author=entry.author, entry=entry)