Correction de l'import des user

This commit is contained in:
guimoz 2017-01-27 01:03:50 +01:00
parent afe659cf51
commit bdec6b8603
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View file

@ -78,7 +78,7 @@ def init_db():
rows = cur_mysql.fetchall() rows = cur_mysql.fetchall()
print('players :') print('players :')
for row in rows: for row in rows:
if row['prenom'] + ' ' + row['nom'] in IMMUNITY: if row['prenom'] + ' ' + row['nom'] not in IMMUNITY:
print(row) print(row)
cur_sqlite.execute("""insert into players values (?,?,?,?)""", \ cur_sqlite.execute("""insert into players values (?,?,?,?)""", \
((row["id"]), row["prenom"], row["nom"], 0)) ((row["id"]), row["prenom"], row["nom"], 0))