|
@@ -93,7 +93,7 @@ class GroceryTransactionEditor(WidgetPlaceholder):
|
|
|
product = data['product']
|
|
|
organic = 'true' if data['organic'] is True else 'false'
|
|
|
tags = ', '.join([
|
|
|
- f'$quot${v}$quot$' for t,v in data.items() if 'tags' in t
|
|
|
+ f'$quot${v}$quot$' for t,v in data.items() if 'tags' in t and v
|
|
|
])
|
|
|
tags = f", ARRAY[{tags}]" if tags else ''
|
|
|
statement = \
|