def loadSpells():
    #checkItems()
    # get max classes
    spellAmount = database.getNumberOfRows('spells')

    for i in range(0, spellAmount):
        query = database.sendQuery((i+1) % "SELECT * FROM spells WHERE id=%i;")
        rows = query.fetchone()

        Spell[i].name = rows['name']
        Spell[i].pic = rows['pic']
        Spell[i].type = rows['type']

        Spell[i].reqMp = rows['reqmp']
        Spell[i].reqClass = rows['reqclass']
        Spell[i].reqLevel = rows['reqlevel']

        Spell[i].data1 = rows['data1']
        Spell[i].data2 = rows['data2']
        Spell[i].data3 = rows['data3']
dataset/ETHPy150Open marcusmoller/pyorpg-server/src/database.py/loadSpells/swapped operands of `%`