summaryrefslogtreecommitdiff
path: root/dealconvert/formats/html.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2020-02-06 02:34:48 +0100
committeremkael <emkael@tlen.pl>2020-02-06 02:34:48 +0100
commiteb3e6c4116e9343e55594667200bb39e3a8ddd13 (patch)
treef5ecfb1066d24a55d301183508a4fccd3187c42f /dealconvert/formats/html.py
parentd9445757f30d5d9a9271c53cfda3fae853a3910e (diff)
Iterating over *all* denominations when rendering DD table in HTML/PDF
Fixes #6
Diffstat (limited to 'dealconvert/formats/html.py')
-rw-r--r--dealconvert/formats/html.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dealconvert/formats/html.py b/dealconvert/formats/html.py
index 0b5b403..71ed008 100644
--- a/dealconvert/formats/html.py
+++ b/dealconvert/formats/html.py
@@ -141,7 +141,7 @@ class HTMLFormat(DealFormat):
data['table'] += '<td>' + self._get_suit_symbol(suit) + '</td>'
data['table'] += '</tr>'
player_order = [0, 2, 1, 3] # NESW -> NSEW
- denom_order = range(4, 0, -1) # CDHSN -> NSHDC
+ denom_order = range(4, -1, -1) # CDHSN -> NSHDC
for player in player_order:
data['table'] += '<tr>'
data['table'] += '<td style="border-left: solid 1px black">' + BCalcWrapper.PLAYERS[player] + '</td>'