def loadItems():
    #checkItems()
    # get max classes
    itemAmount = database.getNumberOfRows('items')

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

        Item[i].name = rows['name']
        Item[i].pic = int(rows['pic'])
        Item[i].type = int(rows['type'])
        Item[i].data1 = rows['data1']
        Item[i].data2 = rows['data2']
        Item[i].data3 = rows['data3']
dataset/ETHPy150Open marcusmoller/pyorpg-server/src/database.py/loadItems/swapped operands of `%`