More debug

This commit is contained in:
guimoz 2017-01-27 01:10:29 +01:00
parent fc77df4254
commit 009e853fad

View file

@ -287,6 +287,8 @@ def get_bans(player_id):
def banned(): def banned():
player = get_player_from_ip(get_ip()) player = get_player_from_ip(get_ip())
if DEBUG:
print(player,'is banned and tries to play')
last_ban = sorted(get_bans(player['id']), key=lambda p: p['time'], \ last_ban = sorted(get_bans(player['id']), key=lambda p: p['time'], \
reverse=False)[-1] reverse=False)[-1]