Skip to content

Commit fe58cfe

Browse files
committed
Listen on 0.0.0.0
1 parent 69e5fbd commit fe58cfe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

group_composition_plot/interactive_RSE_comp_plot.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import dash_bootstrap_components as dbc
88
import plotly.graph_objs as go
99
import datetime
10+
import re
1011
import os
1112
import json
1213

@@ -409,6 +410,7 @@ def save_submission(
409410

410411
# create a file name for the submission
411412
institution_name_strip = institution_name.replace(" ", "_")
413+
institution_name_strip = re.sub(r'\W+', '', institution_name_strip)
412414
submissions_file = os.path.join(
413415
submissions_dir, f"{institution_name_strip}_{date}.json"
414416
)
@@ -516,4 +518,4 @@ def save_submission(
516518
prevent_initial_call=True,
517519
)(save_submission)
518520

519-
app.run_server(debug=True, port=dash_port)
521+
app.run_server(host='0.0.0.0', port=dash_port)

0 commit comments

Comments
 (0)