Exemplo n.º 1
0
 def get(self, promo_id):
     print('GET Promo', promo_id)
     task = TaskGetPromotion(id=promo_id)
     result = {'success': True, 'result': task.execute()}
     print('task Finish')
     return json.dumps(result, indent=4, sort_keys=True, cls=new_alchemy_encoder_v2(False, ['persons']), check_circular=False)
     pass
Exemplo n.º 2
0
 def get(self):
     print('GET ALL Promo')
     task = TaskGetPromotion(**request.args.to_dict())
     result = {'success': True, 'result': task.execute()}
     print('task Finish')
     return json.dumps(result, indent=4, sort_keys=True, cls=new_alchemy_encoder_v2(False, ['persons']), check_circular=False)
     pass