Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

Commit

Permalink
Fix formatting for no-actual-discount entries
Browse files Browse the repository at this point in the history
  • Loading branch information
rg3 committed Dec 20, 2017
1 parent 7efdc53 commit 088a51f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions steam_discounts
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,12 @@ if __name__ == '__main__':
# Compose output.
output = 'Listing %d discounts.\n' % (obtained, )
for entry in sorted(itertools.chain(*batches)):
output += (u'%s ...%s %7s [%7s %s] -- %s\n' %
output += (u'%s ...%s %7s [%12s] -- %s\n' %
(
entry.title[:TITLE_WIDTH],
'.' * (TITLE_WIDTH - len(entry.title)),
entry.price,
entry.orig_price,
entry.discount,
u'%7s %s' % (entry.orig_price, entry.discount),
entry.url,
)
).encode('utf-8')
Expand Down

0 comments on commit 088a51f

Please sign in to comment.