Browse Source

Update API

master
Josh Gordon 3 years ago
parent
commit
ad86f4d17b
  1. 2
      app/routes.py

2
app/routes.py

@ -242,7 +242,7 @@ def item_lookup(bucket,name):
def random_lookup(bucket):
items = get_items("../{}/*".format(bucket))
item = choice(items)
return jsonify(title=item[0],headers=item[1],body=item[2])
return jsonify(title=item[0],headers=item[1],body=item[2],link="dnd.cosi.clarkson.edu/{}#{}".format(bucket,item[0].replace(' ','%20')))
if __name__ == "__main__":

Loading…
Cancel
Save