diff --git a/roulette.py b/roulette.py index f5cd5db..20718d6 100644 --- a/roulette.py +++ b/roulette.py @@ -209,7 +209,7 @@ def ban(player_id, target_id, success): 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'], \ + values (%i,%i,%i,%f)"""% (player['id'], target['id'], \ success and 1 or 0, time())) con.commit() con.close()