fix routing
Browse files
main.py
CHANGED
|
@@ -30,16 +30,16 @@ function load()
|
|
| 30 |
setTimeout(load, 1000);
|
| 31 |
"""
|
| 32 |
|
| 33 |
-
@rt('/')
|
| 34 |
-
def get():
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
|
| 44 |
|
| 45 |
|
|
@@ -94,7 +94,15 @@ def index():
|
|
| 94 |
Group(ChatInput(), Button("Send", cls="btn btn-primary"))
|
| 95 |
)
|
| 96 |
)
|
| 97 |
-
return Titled(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
|
| 99 |
# Handle the form submission
|
| 100 |
@app.post
|
|
|
|
| 30 |
setTimeout(load, 1000);
|
| 31 |
"""
|
| 32 |
|
| 33 |
+
# @rt('/')
|
| 34 |
+
# def get():
|
| 35 |
+
# return Titled("MinorityMap",
|
| 36 |
+
# Link(rel="stylesheet", href="https://unpkg.com/leaflet@1.4.0/dist/leaflet.css"),
|
| 37 |
+
# Style(style),
|
| 38 |
+
# Script(src="https://unpkg.com/leaflet@1.4.0/dist/leaflet.js"),
|
| 39 |
+
# #Body(onload='load()'),
|
| 40 |
+
# Div(id='mapid'),
|
| 41 |
+
# Script(js)
|
| 42 |
+
# )
|
| 43 |
|
| 44 |
|
| 45 |
|
|
|
|
| 94 |
Group(ChatInput(), Button("Send", cls="btn btn-primary"))
|
| 95 |
)
|
| 96 |
)
|
| 97 |
+
return Titled("MinorityMap",
|
| 98 |
+
Link(rel="stylesheet", href="https://unpkg.com/leaflet@1.4.0/dist/leaflet.css"),
|
| 99 |
+
Style(style),
|
| 100 |
+
Script(src="https://unpkg.com/leaflet@1.4.0/dist/leaflet.js"),
|
| 101 |
+
#Body(onload='load()'),
|
| 102 |
+
Div(id='mapid'),
|
| 103 |
+
Script(js),
|
| 104 |
+
page
|
| 105 |
+
)
|
| 106 |
|
| 107 |
# Handle the form submission
|
| 108 |
@app.post
|