Skip to content

Commit a14590a

Browse files
committed
fix
1 parent 2dd4eac commit a14590a

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

__pycache__/app.cpython-36.pyc

17 Bytes
Binary file not shown.

app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def upload(num):
4343

4444
@app.route("/info/<num>")
4545
def info(num):
46+
print(user_col_states)
4647
if num in user_col_states:
4748
return json.dumps(user_col_states[num])
4849
return json.dumps([])

static/client.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Setup
2-
var idNum = 100
2+
var url_string = window.location.href;
3+
var idNum = parseInt(url_string.split('/').slice(-1)[0]);
34
var myname = prompt("Name? ");
45
var color_dict = {"white":"#FFFFFF", "blue":"#0000FF", "red":"#FF0000"}
56
col_info = {"red": null, "blue": null}
@@ -62,7 +63,7 @@ function update_info(){
6263

6364
// Interval methods
6465
setInterval(draw_boards, 500)
65-
setInterval(update_info, 5000)
66+
setInterval(update_info, 120)
6667
//** Onclick methods **
6768

6869
//Upload

0 commit comments

Comments
 (0)