def _getFlag(user):
    conn = sqlite3.connect(APP_DB)
    cursor = conn.cursor()
    cursor.execute(("SELECT user FROM Admins WHERE user='%s'" % user))
    all_data = cursor.fetchone()
    conn.close()
    if ((all_data != None) and (len(all_data) == 1)):
        flag = os.getenv('FLAG', None)
        return flag
    else:
        print(('Alert: %s is not admin.' % user))
        return MSG_NO_ADMIN
def _getFlag(user):
    conn = sqlite3.connect(APP_DB)
    cursor = conn.cursor()
    cursor.execute(("SELECT user FROM Admins WHERE user='%s'" % user))
    all_data = cursor.fetchone()
    conn.close()
    if ((all_data != None) and (len(all_data) == 1)):
        flag = os.getenv('FLAG', None)
        return flag
    else:
        print(('Alert: %s is not admin.' % user))
        return MSG_NO_ADMIN