diff --git a/files/routes/front.py b/files/routes/front.py index a06a3c90a..70e40918f 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -123,13 +123,10 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, ccmode="false" if not (v and v.shadowbanned): posts = posts.join(Submission.author).filter(User.shadowbanned == None) - if SITE == 'rdrama.net': num = 5 - else: num = 0.5 - if sort == 'hot': ti = int(time.time()) + 3600 if SITE_NAME == 'rDrama': - posts = posts.order_by(-1000000*(Submission.realupvotes + 1 + Submission.comment_count/num + func.least(50, (func.length(Submission.body_html)-func.length(func.replace(Submission.body_html,' size)