Exemple #1
0
def get_plans():
    def _plan_description(plan):
        return { 
            'description': plan['description'], 
            'name': plan['name'], 
            'workflow': plan['workflow'],
            'created' : plan['created'] }
    
    return jsonify(success=True, 
    plans=[sanitize_plan(_plan_description(plan)) for plan in plans.find()])
def get_sanitized_plans():
    return [sanitize_plan(_plan_description(plan)) for plan in plans.find()]
Exemple #3
0
def get_sanitized_plans():
    return [sanitize_plan(_plan_description(plan)) for plan in plans.find()]