home » zplus/freepost.git
Author zPlus <zplus@peers.community> 2018-07-28 08:50:36
Committer zPlus <zplus@peers.community> 2018-07-28 08:50:36
Commit 1c1ff93 (patch)
Tree ebef67e
Parent(s)

Fix database calls in RSS controller. modified: freepost/__init__.py


commits diff: e46aad0..1c1ff93
1 file changed, 2 insertions, 2 deletionsdownload


Diffstat
-rwxr-xr-x freepost/__init__.py 4

Diff options
View
Side
Whitespace
Context lines
Inter-hunk lines
+2/-2 M   freepost/__init__.py
index 23d9b2a..64432b0
old size: 25K - new size: 25K
@@ -835,10 +835,10 @@ def rss (sorting):
835 835 base_url = request.urlparts.scheme + '://' + request.urlparts.netloc
836 836
837 837 if sorting == 'new':
838 - posts = database.get_new_posts ()
838 + posts = database.get_posts (sort='new')
839 839
840 840 if sorting == 'hot':
841 - posts = database.get_hot_posts ()
841 + posts = database.get_posts (sort='hot')
842 842
843 843 # Set correct Content-Type header for this RSS feed
844 844 response.content_type = 'application/rss+xml; charset=UTF-8'