Skip to content

Commit

Permalink
Lists accounts and merchants from qlrc. Closes #21.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Carter committed Dec 8, 2014
1 parent 06c7f87 commit 31f1feb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ql
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,12 @@ def listit():
print(conffile+"\t = "+config['merc'][conffile])
except:
print("\nNo merchants found.\n")
print("\nAccounts\n")
try:
print("\nAccounts\n")
print(config['acct']['default_account']+' is the default account.\n')
for conffile in config['acct']:
if conffile == "default_account":
defaultacct = config['acct'][default_account]
print(conffile+"\t = "+config['acct'][conffile])
print("Default Account is "+defaultacct)
if conffile != "default_account":
print(conffile+"\t = "+config['acct'][conffile])
except:
print("\nNo accounts found.\n")
quit()
Expand Down

0 comments on commit 31f1feb

Please sign in to comment.