def accountExists(name):
    query = database.sendQuery("SELECT * FROM accounts WHERE username='%s';" % name)
    rows = query.fetchone()

    if not rows:
        return False

    else:
        return True
dataset/ETHPy150Open marcusmoller/pyorpg-server/src/database.py/accountExists/original