Correction d'une indentation

This commit is contained in:
guimoz 2017-01-26 23:43:24 +01:00
parent 11d3ffd0c7
commit c6a630d974

View file

@ -77,10 +77,10 @@ def init_db():
and typeUtilisateur='membre'""")
rows = cur_mysql.fetchall()
for row in rows:
if row['prenom'] + ' ' + row['nom'] in IMMUNITY:
print(row)
cur_sqlite.execute("""insert into players values (?,?,?,?)""", \
((row["id"]), row["prenom"], row["nom"], 0))
if row['prenom'] + ' ' + row['nom'] in IMMUNITY:
print(row)
cur_sqlite.execute("""insert into players values (?,?,?,?)""", \
((row["id"]), row["prenom"], row["nom"], 0))
# Remplissage de la table ip à partir de la table equipements
cur_mysql.execute("""select equipements.id,utilisateurs.id,equipements.ip