|
|
@ -209,7 +209,7 @@ def ban(player_id, target_id, success): |
|
|
where id=%i"""% (ban_end, banned_player['id'])) |
|
|
where id=%i"""% (ban_end, banned_player['id'])) |
|
|
|
|
|
|
|
|
cur.execute("""insert into bans (player_id,target_id,success,time) |
|
|
cur.execute("""insert into bans (player_id,target_id,success,time) |
|
|
values %i,%i,%i,%f"""% (player['id'], target['id'], \ |
|
|
values (%i,%i,%i,%f)"""% (player['id'], target['id'], \ |
|
|
success and 1 or 0, time())) |
|
|
success and 1 or 0, time())) |
|
|
con.commit() |
|
|
con.commit() |
|
|
con.close() |
|
|
con.close() |
|
|
|