Browse Source

Create marchLog dummy contract

marches
Josh Gordon 3 years ago
parent
commit
30ac9bd59a
  1. 8
      app/routes.py

8
app/routes.py

@ -67,6 +67,7 @@ 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)
@ -92,6 +93,13 @@ def marchWorld(world):
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,logs=log_list)
@app.route("/marches/world/<world>/<logname>")
def marchLog(world,logname):
#... code
#logname is title of adventure
#log type is (DateString,X,Y,[(Name,Text)])
return render_template("marchLog.html",worldname=world,log=None)
def bucket_route(uri, dir, sing=None):
if sing is None:
sing = dir[:-1] # minus "s"

Loading…
Cancel
Save