X-Git-Url: https://git.yukkurigames.com/?p=mlpccg-meta.git;a=blobdiff_plain;f=meta%2Fviews.py;h=011eccf563a14e4e6d2a6a86e6ab341a330f9aae;hp=623ec055ad5db3bae24f7427337cb0aa5d203a4d;hb=227cf8c2dd8053ffd94c027365f88d04c2b85e3a;hpb=fb6094edaa3a1a59060f1382d362b671d4d70468 diff --git a/meta/views.py b/meta/views.py index 623ec05..011eccf 100644 --- a/meta/views.py +++ b/meta/views.py @@ -13,7 +13,7 @@ def index(request): tournament_data = [] for tournament in tournament_models: tournament_records = tournament.recordmodel_set.all().order_by('placement') - tournament_decks = [DeckList(name=record.decklist.name, url=record.decklist.url) for record in tournament_records] + tournament_decks = [(record.placement, DeckList(name=record.decklist.name, url=record.decklist.url)) for record in tournament_records] tournament_data += [{'tournament': tournament, 'decklists': tournament_decks}] records = RecordModel.objects.all()