Explorar o código

Fix duplicates in bookorder list when 'list orders' called several times

Jovian (Netbook) %!s(int64=6) %!d(string=hai) anos
pai
achega
07de124bdb
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      cli/book_asker.py

+ 1 - 0
cli/book_asker.py

@@ -14,6 +14,7 @@ class BookAsker:
         ]
 
     def select(self, bookList):
+        self.widget[0]['choices'] = []
         for rb in bookList:
             dic = {'key': rb[0], 'value': rb[0], 'name': str(rb[0]) + ' : ' + str(rb[1].isoformat())}
             self.widget[0]['choices'].append(dic)