Skip to content

Commit

Permalink
Presentation cleanup:
Browse files Browse the repository at this point in the history
- blank line after routes,
- show routes before checklist so you know what you're checklisting.
  • Loading branch information
kfsone committed Aug 18, 2014
1 parent a4146ef commit 787f2b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions trade.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,16 +324,15 @@ def main():

routes.sort()

for i in range(0, min(len(routes), args.routes)):
print(routes[i].detail(args.detail))

# User wants to be guided through the route.
if args.checklist:
assert args.routes == 1
doChecklist(routes[0], args.credits)
return

# Just print the routes.
for i in range(0, min(len(routes), args.routes)):
print(routes[i].detail(args.detail))

if __name__ == "__main__":
main()
if mfd:
Expand Down
1 change: 1 addition & 0 deletions tradecalc.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def detail(self, verbose=False):
gainCr += hop[1]

str += " <-< %s gaining %dcr => %dcr total" % (route[-1], gainCr, credits + gainCr)
str += "\n"

return str

Expand Down

0 comments on commit 787f2b4

Please sign in to comment.