|
|
@ -61,14 +61,20 @@ def search(): |
|
|
|
def marches(): |
|
|
|
return render_template('marches.html', worlds=get_worlds()) |
|
|
|
|
|
|
|
@app.route("/marches/maps/<world>") |
|
|
|
def marchMap(world): |
|
|
|
image_map = [("Temple of Constant Explosions",10,20,35),("Deep Gnome Workshop",50,40,20)] #(place,x,y,r) |
|
|
|
return render_template("marchMap.html",worldname=world,imap=image_map) |
|
|
|
|
|
|
|
|
|
|
|
@app.route("/marches/worlds/<world>") |
|
|
|
def marchWorld(world): |
|
|
|
worldDir = "../Worlds/"+world |
|
|
|
#copy <worldname>.png from world.png into static |
|
|
|
player_list = ["INVALID1","INVALID2","INVALID3"] |
|
|
|
image_map = [(10,20,35),(50,40,20)] #(x,y,r) |
|
|
|
#image_map = [("Temple of Constant Explosions",10,20,35),("Deep Gnome Workshop",50,40,20)] #(place,x,y,r) |
|
|
|
log_list = [("5/3/19",[("Josh Gordon","bottom text"),("Anthony Rinaldo","lorem ipsum")])] # :: [(Date,[(CharacterName,String)])] |
|
|
|
return render_template("marchWorld.html",worldname=world,players=player_list,imap=image_map,logs=log_list) |
|
|
|
return render_template("marchWorld.html",worldname=world,players=player_list,logs=log_list) |
|
|
|
|
|
|
|
def bucket_route(uri, dir, sing=None): |
|
|
|
if sing is None: |
|
|
|