|
@@ -184,7 +184,7 @@ class GroceryTransactionEditor(urwid.WidgetPlaceholder):
|
|
|
unit = data['unit']
|
|
|
price = data['price']
|
|
|
product = data['product']
|
|
|
- organic = data['organic'] if data['organic'] else 'false'
|
|
|
+ organic = 'true' if data['organic'] == 'yes' else 'false'
|
|
|
statement = \
|
|
|
f"CALL insert_transaction('{ts}', $store${store}$store$, " \
|
|
|
f"$descr${description}$descr$, {quantity}, $unit${unit}$unit$, " \
|