I'm trying to make a simple thing, inserting all those values into a database, but when run it, it won't insert anything, no error will be shown though. (I'm no more than a beginner, sorry if the solution is obvious)
This is the code, function extracted from a discord bot I'm experimenting with in python.
import mysql.connector
id_discord = 397439760676945930
nick_discord = "zascan"
region = "EUW"
nick_lol = "ZascanGamer"
rank = "MASTER"
lps = "0LP"
region_rank = 4010
mydb = mysql.connector.connect(
host = "localhost",
user = "root",
password = "",
database = "servidor_discord")
cursor = mydb.cursor(dictionary=True)
sql = "INSERT INTO usuarios (ID_DISCORD, NICK_DISCORD, REGION, NICK_LOL, RANGO, LPS, RANGO_REGION) VALUES (%s,%s,%s,%s,%s,%s,%s)"
cursor.execute(sql, (id_discord, nick_discord, region, nick_lol, rank, lps, region_rank))I