More debug
This commit is contained in:
parent
b104e35eb9
commit
61de526782
1 changed files with 4 additions and 4 deletions
|
@ -207,10 +207,10 @@ def ban(player_id, target_id, success):
|
|||
|
||||
cur.execute("""update players set ban_end=%f
|
||||
where id=%i"""% (ban_end, banned_player['id']))
|
||||
|
||||
cur.execute("""insert into bans (player_id,target_id,success,time)
|
||||
values (%i,%i,%i,%f)"""% (player['id'], target['id'], \
|
||||
success and 1 or 0, time()))
|
||||
requete = """insert into bans (player_id,target_id,success,time) values (%i,%i,%i,%f)"""% (player['id'], target['id'],success and 1 or 0, time())
|
||||
cur.execute(requete)
|
||||
if DEBUG:
|
||||
print(requete)
|
||||
con.commit()
|
||||
con.close()
|
||||
|
||||
|
|
Loading…
Reference in a new issue