update the rest of the code to support the new config format
[iron-blogger] / config.py
index d112ea5dfe3e5c9889cde8d1c44bec6b45db7a45..fa3a133f1ea28c0d4e1daad4333f7bd86c79609f 100644 (file)
--- a/config.py
+++ b/config.py
@@ -17,7 +17,7 @@ FINE_SIZE = 5
 CURRENCY = "$"
 
 # check the version of ledger to find out which commands to use
-if subprocess.check_output(['ledger', '--version'])[7] == 3:
+if subprocess.check_output(['ledger', '--version'])[7] == "3":
     BALANCE_CMD = ['ledger', '-f', os.path.join(HERE,'ledger'),
                    '--no-color', '-n', 'balance']
 

Benjamin Mako Hill || Want to submit a patch?