def get_flags(): flags = Flags(engine) return api_response({"flags": flags.get_list()})
def post_flag(): flags = Flags(engine) flag_ids = request.form.getlist("flags[]", None) app_id = request.form.get("app_id", 0) return api_response({"apps": flags.add_data(app_id, flag_ids)})