File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 13
13
roles = []
14
14
ip2role_index_name = {}
15
15
nComments = 0
16
+ comments_ordered = []
16
17
17
18
@auth .verify_password
18
19
def verify_password (username , password ):
@@ -67,7 +68,7 @@ def verify_password_god(username, password):
67
68
@app .route ('/GOD' )
68
69
@auth_GOD .login_required
69
70
def GOD_PAGE ():
70
- global ip2role_index_name , nComments
71
+ global ip2role_index_name , nComments , comments_ordered
71
72
msg = ""
72
73
if request .args .get ("Kill" ) is not None :
73
74
ip = request .args .get ("Kill" )
@@ -94,15 +95,18 @@ def GOD_PAGE():
94
95
if nComments <= nPlayers // 3 :
95
96
ip2role_index_name [ip ][4 ] = True
96
97
nComments += 1
98
+ comments_ordered .append (ip )
97
99
else :
98
100
msg = "Error: Out of Comments."
99
101
else :
100
102
ip2role_index_name [ip ][4 ] = False
101
103
nComments -= 1
104
+ comments_ordered .remove (ip )
102
105
else :
103
106
return render_template ("404.html" , is_farsi = True )
104
107
return render_template ("GOD.html" , ip2role_index_name = ip2role_index_name ,
105
- prompt_message = msg , roles = {role :roles .count (role ) for role in set (roles )})
108
+ prompt_message = msg , roles = {role :roles .count (role ) for role in set (roles )},
109
+ comments = comments_ordered )
106
110
107
111
108
112
@app .errorhandler (404 )
You can’t perform that action at this time.
0 commit comments