2.0.0-rc1 : Profile and achievements update.

This commit is contained in:
2026-08-09 00:50:45 +08:00
parent 562775e5db
commit 3874bf57a9
31 changed files with 2618 additions and 108 deletions
+19
View File
@@ -0,0 +1,19 @@
from flask import Blueprint, render_template, request
from web.services.narrative_service import NarrativeService
bp = Blueprint('awards', __name__, url_prefix='/awards')
@bp.route('/')
def index():
award_type = request.args.get('type')
return render_template(
'awards/index.html',
awards=NarrativeService.list_awards(award_type),
leaderboard=NarrativeService.get_award_summary(),
award_type=award_type,
award_types=NarrativeService.AWARD_TYPE_LABELS,
)