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)
def renderProducts(self, products): self.products.value = ProductAdapter(products).data
def renderProducts(self, products): self.products.value = ProductAdapter(products).data self.loading.hide()