mirror of
https://github.com/lalanza808/monero.fail.git
synced 2025-08-15 03:45:26 -04:00
include nodes in the map view
This commit is contained in:
parent
336bdb1e7c
commit
7513d0e9e3
3 changed files with 51 additions and 8 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue