示例#1
0
def execute_commands():
    func_out = execute_db_commands()

    if func_out in errors:
        flash('SDK Error. Message: ' + func_out, 'warning')

    return redirect(url_for('main.home'))
示例#2
0
def execute_commands():
    err_msg = execute_db_commands()

    if err_msg:
        flash('No Vector is Connected. Error message: ' + err_msg, 'warning')

    return redirect(url_for('main.home'))
示例#3
0
 def get(self):
     err_msg = execute_db_commands()
     if err_msg:
         return err_msg
     return {'Commands': 'Complete'}