summaryrefslogtreecommitdiff
path: root/dealconvert/formats/dup.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-05-23 00:59:23 +0200
committeremkael <emkael@tlen.pl>2019-05-23 00:59:39 +0200
commit5a6daf4d1498c3a35d99db37d1823c8128b95db7 (patch)
tree1846947b5214877440d8f7eb03f76d6ce022272b /dealconvert/formats/dup.py
parentbec85ffa0867b7a30e55294c230de890496e593e (diff)
Dealset is sorted by default
Diffstat (limited to 'dealconvert/formats/dup.py')
-rw-r--r--dealconvert/formats/dup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dealconvert/formats/dup.py b/dealconvert/formats/dup.py
index 068a05e..53b790b 100644
--- a/dealconvert/formats/dup.py
+++ b/dealconvert/formats/dup.py
@@ -51,7 +51,7 @@ class DUPFormat(DealFormat):
print 'ERROR: .dup format requires consequent board numbers'
sys.exit()
header = 'YN%s 0 %02d ' % (str(first_board).ljust(2, ' '), board_count)
- for deal in sorted(dealset, key=lambda d:d.number):
+ for deal in dealset:
out_file.write(self.bri.single_deal_output(deal))
out_file.write(self.dge.single_deal_output(deal))
if deal.number == first_board: