include nodes in the map view

This commit is contained in:
lza_menace 2023-10-02 10:54:24 -07:00
parent 336bdb1e7c
commit 7513d0e9e3
3 changed files with 51 additions and 8 deletions

View file

@ -65,10 +65,16 @@ def index():
def map():
try:
peers = rw_cache("map_peers")
nodes = Node.select().where(Node.datetime_checked)
except:
flash("Couldn't load the map. Try again later.")
return redirect("/")
return render_template("map.html", peers=peers, source_node=config.NODE_HOST)
return render_template(
"map.html",
peers=peers,
nodes=nodes,
source_node=config.NODE_HOST
)
@bp.route("/about")