Пример #1
0
def get_flags():
    flags = Flags(engine)
    return api_response({"flags": flags.get_list()})
Пример #2
0
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)})