From 085c99272ed5d3ae78c734164ea4ab537814d72b Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Wed, 24 Nov 2021 23:14:32 +0000 Subject: [PATCH] Show gamejam banner to all users --- app/blueprints/homepage/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/blueprints/homepage/__init__.py b/app/blueprints/homepage/__init__.py index 7c06c27e..f2935eec 100644 --- a/app/blueprints/homepage/__init__.py +++ b/app/blueprints/homepage/__init__.py @@ -42,8 +42,7 @@ def home(): count = query.count() featured = query.filter(Package.tags.any(name="featured")).order_by(func.random()).limit(6).all() - if current_user.is_authenticated: - featured.insert(0, GameJam()) + featured.insert(0, GameJam()) new = join(query.order_by(db.desc(Package.approved_at))).limit(4).all() pop_mod = join(query.filter_by(type=PackageType.MOD).order_by(db.desc(Package.score))).limit(8).all()