File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ def __init__(self):
21
21
22
22
def update (self ): # functions that need to be checked regularly
23
23
while True :
24
+ print ('[comHandler]' )
24
25
# self.send_friendly_request()
25
26
self .receive_tournament_update ()
26
27
Original file line number Diff line number Diff line change 5
5
from CommunicationHandler import CommunicationHandler
6
6
import threading
7
7
import json
8
+ from waitress import serve
8
9
9
10
app = Flask (__name__ )
10
11
app .config ["DEBUG" ] = False
24
25
###############################################################
25
26
@app .route ('/' , methods = ['GET' , 'POST' ])
26
27
def index ():
28
+ print ('[index]' )
27
29
return render_template ('home.html' )
28
30
29
31
@@ -202,7 +204,8 @@ def request_overview():
202
204
############################# RUN #############################
203
205
###############################################################
204
206
update_thread = threading .Thread (target = commHandler .update )
205
- # update_thread.start()
207
+ update_thread .start ()
206
208
207
- app .run (host = '0.0.0.0' )
208
- # update_thread.join()
209
+ serve (app , host = "0.0.0.0" , port = 5000 )
210
+ # app.run(host='0.0.0.0')
211
+ update_thread .join ()
You can’t perform that action at this time.
0 commit comments