Пример #1
0
 def get(self):
     orders = OrdersModel.get_orders()
     return orders, 200
Пример #2
0
 def get(self):
     orders = OrdersModel.get_orders()['orders']
     orders_list = [order for order in orders if order['state'] == 2]
     return {'orders': orders_list}, 200
Пример #3
0
 def _get_orders(self):
     return OrdersModel.get_orders()['orders']