diff options
Diffstat (limited to 'ledger-price-db-update.py')
| -rwxr-xr-x | ledger-price-db-update.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ledger-price-db-update.py b/ledger-price-db-update.py index 1ab1d4f..eed54bc 100755 --- a/ledger-price-db-update.py +++ b/ledger-price-db-update.py @@ -49,7 +49,8 @@ def print_price(symbol, price, base, date=datetime.datetime.now()): date_str = date.strftime('%Y/%m/%d %H:%M:%S') if ' ' in symbol: symbol = '"' + symbol + '"' - print(('P %s %s %f %s' % (date_str, symbol, price, base))) + if price: + print(('P %s %s %f %s' % (date_str, symbol, price, base))) def exchange_rates(): |
