Skip to content

Commit b03fdd2

Browse files
committed
fix : GOD's password place fixed.
1 parent 65cac59 commit b03fdd2

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

mafia.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ def index():
2929
role = ""
3030
image_name = ""
3131
ip = str(request.remote_addr)
32-
33-
if id == 0:
34-
print("_" * 20 + "GOD's password" + "_" * 20)
35-
print(preshared_key)
36-
print("_" * 54)
3732

3833
if ip in ip2role_index_name.keys():
3934
return render_template("Player.html", player=ip2role_index_name[ip])
@@ -163,6 +158,10 @@ def give_me_roles(ordered_roles):
163158
chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789!@#$%^&*()"
164159
for i in range(4):
165160
preshared_key += chars[randrange(0, len(chars))]
166-
app.run(host="0.0.0.0", \
167-
port=5000, \
168-
debug=True)
161+
print("_" * 20 + "GOD's password" + "_" * 20)
162+
print(preshared_key)
163+
print("_" * 54)
164+
app.run(host="0.0.0.0",
165+
port=5000,
166+
debug=True,
167+
use_reloader=False)

0 commit comments

Comments
 (0)