]> git.ipfire.org Git - ipfire.org.git/commitdiff
planet: Only publish articles that are actually published.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 May 2014 11:55:12 +0000 (13:55 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 8 May 2014 11:55:12 +0000 (13:55 +0200)
webapp/backend/planet.py

index e063d3bd43a962deee88dfaf881649ff606afa9c..1c51b5bfe0ec7112ffe15c58f761fcc37f962e7d 100644 (file)
@@ -155,6 +155,9 @@ class Planet(Object):
                        clauses.append("status = %s")
                        args.append(status)
 
+                       if status == "published":
+                               clauses.append("published <= NOW()")
+
                if author_id:
                        clauses.append("author_id = %s")
                        args.append(author_id)