From a7b6778f6428a1e5f661bd38c2771924e68dc498 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 4 Dec 2022 15:02:49 +0000 Subject: [PATCH] Remove gamejam promotion --- app/blueprints/homepage/__init__.py | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/app/blueprints/homepage/__init__.py b/app/blueprints/homepage/__init__.py index 0750353a..61d65c42 100644 --- a/app/blueprints/homepage/__init__.py +++ b/app/blueprints/homepage/__init__.py @@ -3,33 +3,10 @@ from flask import Blueprint, render_template, redirect bp = Blueprint("homepage", __name__) from app.models import * -from sqlalchemy.orm import joinedload, subqueryload, contains_eager +from sqlalchemy.orm import joinedload, subqueryload from sqlalchemy.sql.expression import func -GAMEJAM_BANNER = "https://raw.githubusercontent.com/GreenXenith/minetestgamejam/master/2022/images/banner_textless.png" - - -class GameJam: - cover_image = type("", (), dict(url=GAMEJAM_BANNER))() - tags = [] - - def getCoverImageURL(self): - return GAMEJAM_BANNER - - def getURL(self, _name): - return "/gamejam/" - - title = "Minetest Game Jam 2022" - author = None - - short_desc = "It's back! We're holding a 3-week Game Jam starting November 1st. Sharpen your gamedev skills with a " \ - "chance for cash prizes. " - type = type("", (), dict(value="Competition"))() - content_warnings = [] - reviews = [] - - @bp.route("/gamejam/") def gamejam(): return redirect("https://forum.minetest.net/viewtopic.php?t=28802") @@ -56,7 +33,6 @@ def home(): count = query.count() featured = query.filter(Package.tags.any(name="featured")).order_by(func.random()).limit(6).all() - featured.insert(0, GameJam()) new = package_load(query.order_by(db.desc(Package.approved_at))).limit(4).all() pop_mod = package_load(query.filter_by(type=PackageType.MOD).order_by(db.desc(Package.score))).limit(8).all()