Browse Source

Now dynamicly loading the list of logs (from log.json)

marches
Anthony Rinaldo 4 years ago
parent
commit
09afa7f351
  1. 3
      app/routes.py

3
app/routes.py

@ -90,7 +90,8 @@ def marchWorld(world):
pfile.close()
#image_map = [(10,20,35),(50,40,20)] #("place name",x,y,r)
#image_map = [("Temple of Constant Explosions",10,20,35),("Deep Gnome Workshop",50,40,20)] #(place,x,y,r)
log_list = ["Raiding Cosi"] # :: [AdventureName]
#log_list = ["Raiding Cosi"] # :: [AdventureName]
log_list = json.load(open(worldDir + "log.json",'r')).keys()
return render_template("marchWorld.html",worldname=world,players=player_list,logs=log_list)
@app.route("/marches/worlds/<world>/<logname>")

Loading…
Cancel
Save