The leagues, phase 4: the duel learns, tin tiers by league, level buffs, the board wears the badge

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
wuwiandClaude Fable 5 committed 2026-08-29 12:53:12 +02:00
1 parent 76d88030e5
commit 787877bce6
10 files changed
+175 -24

No files matched your search

+5 -1
View File
@@ -126,7 +126,11 @@ def clean(payload):
mode = str(payload.get('m', 'g'))
if mode not in MODES:
mode = 'g' # an unknown board is the default one, never a new one
return {'n': name, 'k': kills, 'g': games, 't': int(time.time()), 'id': who, 'm': mode}
try: # the league badge (THE LEAGUES): context, not a sort key
lg = max(1, min(5, int(payload.get('lg', 1))))
except (TypeError, ValueError):
lg = 1
return {'n': name, 'k': kills, 'g': games, 't': int(time.time()), 'id': who, 'm': mode, 'lg': lg}
def public(rows):