mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Remove game jam banner
This commit is contained in:
parent
376864db1b
commit
7ce2ee1f5b
@ -28,26 +28,25 @@ from sqlalchemy.sql.expression import func
|
||||
|
||||
PKGS_PER_ROW = 4
|
||||
|
||||
GAMEJAM_BANNER = "https://jam.minetest.net/img/banner.png"
|
||||
|
||||
|
||||
class GameJam:
|
||||
cover_image = type("", (), dict(url=GAMEJAM_BANNER))()
|
||||
tags = []
|
||||
|
||||
def get_cover_image_url(self):
|
||||
return GAMEJAM_BANNER
|
||||
|
||||
def get_url(self, _name):
|
||||
return "/gamejam/"
|
||||
|
||||
title = "Minetest Game Jam 2023: \"Unexpected\""
|
||||
author = None
|
||||
|
||||
short_desc = "The game jam has finished! It's now up to the community to play and rate the games."
|
||||
type = type("", (), dict(value="Competition"))()
|
||||
content_warnings = []
|
||||
reviews = []
|
||||
# GAMEJAM_BANNER = "https://jam.minetest.net/img/banner.png"
|
||||
#
|
||||
# class GameJam:
|
||||
# cover_image = type("", (), dict(url=GAMEJAM_BANNER))()
|
||||
# tags = []
|
||||
#
|
||||
# def get_cover_image_url(self):
|
||||
# return GAMEJAM_BANNER
|
||||
#
|
||||
# def get_url(self, _name):
|
||||
# return "/gamejam/"
|
||||
#
|
||||
# title = "Minetest Game Jam 2023: \"Unexpected\""
|
||||
# author = None
|
||||
#
|
||||
# short_desc = "The game jam has finished! It's now up to the community to play and rate the games."
|
||||
# type = type("", (), dict(value="Competition"))()
|
||||
# content_warnings = []
|
||||
# reviews = []
|
||||
|
||||
|
||||
@bp.route("/gamejam/")
|
||||
@ -92,7 +91,7 @@ def home():
|
||||
spotlight_pkgs = package_spotlight_load(query.filter(
|
||||
Package.collections.any(and_(Collection.name == "spotlight", Collection.author.has(username="ContentDB"))))
|
||||
.order_by(func.random())).limit(6).all()
|
||||
spotlight_pkgs.insert(0, GameJam())
|
||||
# spotlight_pkgs.insert(0, GameJam())
|
||||
|
||||
new = package_load(query).order_by(db.desc(Package.approved_at)).limit(PKGS_PER_ROW).all() # 0.06
|
||||
pop_mod = package_load(query).filter_by(type=PackageType.MOD).order_by(db.desc(Package.score)).limit(2*PKGS_PER_ROW).all()
|
||||
|
Loading…
Reference in New Issue
Block a user