url UX(?) improvement

the no argument version of /hotspots should include the legend because it's expected to be used as a dashboard :)
This commit is contained in:
2024-04-15 08:31:49 -05:00
parent d022436a6e
commit 75d2e46578
3 changed files with 4 additions and 4 deletions

View File

@@ -57,8 +57,8 @@ def resume():
@app.route("/hotspots")
def hotspotsRIT():
url = HotspotsURL
if flask.request.args.get("legend") == "true":
url += "?legend=true"
if flask.request.args.get("legend") == "false":
url += "?legend=false"
pagevars = {
"template": "iframe.html",
"title": f"Hotspots @ RIT",