|
@@ -580,7 +580,7 @@ class GroceryTransactionEditor(urwid.WidgetPlaceholder):
|
|
|
unit = self.data['unit']
|
|
|
price = self.data['price']
|
|
|
product = self.data['product']
|
|
|
- organic = 'true' if self.data['organic'] else 'false'
|
|
|
+ organic = self.data['organic'] if self.data['organic'] else 'false'
|
|
|
log = f"{time.strftime(fmt, ts_log)}-{store}.txn"
|
|
|
with open(log, 'a') as f:
|
|
|
f.write(
|