Esempio n. 1
0
 def renderProducts(self, products):
     # all products
     adapter = ProductAdapter(products)
     # all orders
     orders = app.products_order_list
     # Find my bought orders
     bought_orders = [i for i in orders if i['buyer_addr'] == app.addr]
     # Find all my bought products's hash
     products = [i['product_hash'] for i in bought_orders]
     self.products.value = adapter.filter_in('market_hash', products)
Esempio n. 2
0
 def renderProducts(self, products):
     self.products.value = ProductAdapter(products).data
Esempio n. 3
0
 def renderProducts(self, products):
     self.products.value = ProductAdapter(products).data
     self.loading.hide()