Correction du nom de variable banned
This commit is contained in:
parent
10bbc40117
commit
c76c7dbf9a
1 changed files with 12 additions and 12 deletions
24
roulette.py
24
roulette.py
|
@ -364,20 +364,20 @@ def home():
|
||||||
reverse=True)
|
reverse=True)
|
||||||
|
|
||||||
bans_hist = []
|
bans_hist = []
|
||||||
for ban in bans:
|
for banned in bans:
|
||||||
date = strftime('%Hh%M (%A)', localtime(ban['time']))
|
date = strftime('%Hh%M (%A)', localtime(banned['time']))
|
||||||
source = get_player(ban['player_id'])
|
source = get_player(banned['player_id'])
|
||||||
target = get_player(ban['target_id'])
|
target = get_player(banned['target_id'])
|
||||||
|
|
||||||
if target['id'] == player['id']:
|
if target['id'] == player['id']:
|
||||||
if ban['success']:
|
if banned['success']:
|
||||||
entry = ('ban', u'%s : %s %s a réussi à t\'avoir.' \
|
entry = ('ban', u'%s : %s %s a réussi à t\'avoir.' \
|
||||||
% (date, source['firstname'], source['name']))
|
% (date, source['firstname'], source['name']))
|
||||||
else:
|
else:
|
||||||
entry = ('warn', u'%s : %s %s a essayé de te trancher, en vain.' \
|
entry = ('warn', u'%s : %s %s a essayé de te trancher, en vain.' \
|
||||||
% (date, source['firstname'], source['name']))
|
% (date, source['firstname'], source['name']))
|
||||||
else:
|
else:
|
||||||
if ban['success']:
|
if banned['success']:
|
||||||
entry = ('ok', u'%s : Tu as tranché %s %s avec succès.' \
|
entry = ('ok', u'%s : Tu as tranché %s %s avec succès.' \
|
||||||
% (date, target['firstname'], target['name']))
|
% (date, target['firstname'], target['name']))
|
||||||
else:
|
else:
|
||||||
|
@ -403,20 +403,20 @@ def play():
|
||||||
reverse=True)
|
reverse=True)
|
||||||
|
|
||||||
bans_hist = []
|
bans_hist = []
|
||||||
for ban in bans:
|
for banned in bans:
|
||||||
date = strftime('%Hh%M (%A)', localtime(ban['time']))
|
date = strftime('%Hh%M (%A)', localtime(banned['time']))
|
||||||
source = get_player(ban['player_id'])
|
source = get_player(banned['player_id'])
|
||||||
target = get_player(ban['target_id'])
|
target = get_player(banned['target_id'])
|
||||||
|
|
||||||
if target['id'] == player['id']:
|
if target['id'] == player['id']:
|
||||||
if ban['success']:
|
if banned['success']:
|
||||||
entry = ('ban', u'%s : %s %s a réussi à t\'avoir.' \
|
entry = ('ban', u'%s : %s %s a réussi à t\'avoir.' \
|
||||||
% (date, source['firstname'], source['name']))
|
% (date, source['firstname'], source['name']))
|
||||||
else:
|
else:
|
||||||
entry = ('warn', u'%s : %s %s a essayé de te trancher, en vain.' \
|
entry = ('warn', u'%s : %s %s a essayé de te trancher, en vain.' \
|
||||||
% (date, source['firstname'], source['name']))
|
% (date, source['firstname'], source['name']))
|
||||||
else:
|
else:
|
||||||
if ban['success']:
|
if banned['success']:
|
||||||
entry = ('ok', u'%s : Tu as tranché %s %s avec succès.' \
|
entry = ('ok', u'%s : Tu as tranché %s %s avec succès.' \
|
||||||
% (date, target['firstname'], target['name']))
|
% (date, target['firstname'], target['name']))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue