mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
hide dup details when no dupe games present
This commit is contained in:
parent
44152f6c36
commit
9d1214d604
1 changed files with 6 additions and 3 deletions
|
@ -588,9 +588,12 @@ def summarizeTileCounts(devs, endTime, state, changeSecs):
|
|||
fmtData[2]['data'].append(txt)
|
||||
|
||||
print('')
|
||||
print('devs left: {}; bag tiles left: {} (std: {}, dup: {}); total launches: {}; {}/{}'
|
||||
.format(nDevs, totalTilesStd + totalTilesDup, totalTilesStd, totalTilesDup,
|
||||
nLaunches, datetime.datetime.now(), endTime ))
|
||||
if totalTilesDup: dupDetails = ' (std: {}, dup: {})'.format(totalTilesStd, totalTilesDup)
|
||||
else: dupDetails = ''
|
||||
# here
|
||||
print('devs left: {nDevs}; bag tiles left: {total}{details}; total launches: {nLaunches}; {now}/{endTime}' \
|
||||
.format(nDevs=nDevs, total=totalTilesStd + totalTilesDup, details=dupDetails, \
|
||||
nLaunches=nLaunches, now=datetime.datetime.now(), endTime=endTime ))
|
||||
fmt = '{head:>%d} {data}' % headWidth
|
||||
for datum in fmtData: datum['data'] = ' '.join(datum['data'])
|
||||
for datum in fmtData:
|
||||
|
|
Loading…
Reference in a new issue