Пример #1
0
def insert_envs(project_name):
    [user_ID, app_name] = project_name.split('+')
    try:
        AppService.insert_envs(user_ID, app_name)
    except DoesNotExist:
        return jsonify({"response": f'no app {project_name} or not an app'})
    else:
        return jsonify({"response": f'insert_envs success {project_name}'})
Пример #2
0
def insert_envs(project_name):
    """
    insert env api when jl container start
    :param project_name:
    :return:
    """
    [user_ID, app_name] = project_name.split('+')
    try:
        AppService.insert_envs(user_ID, app_name)
    except DoesNotExist:
        return jsonify({"response": f'no app {project_name} or not an app'})
    else:
        return jsonify({"response": f'insert_envs success {project_name}'})