|
@@ -172,8 +172,10 @@ class GroceryTransactionEditor(urwid.WidgetPlaceholder):
|
|
#print(self.cur.mogrify(line))
|
|
#print(self.cur.mogrify(line))
|
|
#input()
|
|
#input()
|
|
self.cur.execute(line)
|
|
self.cur.execute(line)
|
|
- self._apply_choice('ts', date)
|
|
|
|
- self._apply_choice('store', store)
|
|
|
|
|
|
+
|
|
|
|
+ if None not in (date, store):
|
|
|
|
+ self._apply_choice('ts', date)
|
|
|
|
+ self._apply_choice('store', store)
|
|
|
|
|
|
self.log = self.open(log)
|
|
self.log = self.open(log)
|
|
|
|
|