aboutsummaryrefslogtreecommitdiff
path: root/app/views/__init__.py
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-12-22 20:39:34 +0000
committerrubenwardy <rw@rubenwardy.com>2018-12-22 20:49:19 +0000
commit8eedbf64a4c85d9cc8ed61f489f8dcf0e406c56c (patch)
tree8db63758ef987f0b2901204684f9f19ec1a74992 /app/views/__init__.py
parentc551201f792aa288a49c986aab264f4692e3b478 (diff)
downloadcheatdb-8eedbf64a4c85d9cc8ed61f489f8dcf0e406c56c.tar.xz
Improve package grid
Diffstat (limited to 'app/views/__init__.py')
-rw-r--r--app/views/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/__init__.py b/app/views/__init__.py
index 412c236..6c19b0c 100644
--- a/app/views/__init__.py
+++ b/app/views/__init__.py
@@ -48,8 +48,8 @@ def send_upload(path):
def home_page():
query = Package.query.filter_by(approved=True, soft_deleted=False)
count = query.count()
- new = query.order_by(db.desc(Package.created_at)).limit(15).all()
- popular = query.order_by(db.desc(Package.score)).limit(6).all()
+ new = query.order_by(db.desc(Package.created_at)).limit(12).all()
+ popular = query.order_by(db.desc(Package.score)).limit(8).all()
return render_template("index.html", new=new, popular=popular, count=count)
from . import users, githublogin, packages, meta, threads, api