Browse Source

Fix link

master
Josh Gordon 2 years ago
parent
commit
9a69082c89
  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],link="dnd.cosi.clarkson.edu/{}#{}".format(bucket,item[0].replace(' ','%20')))
return jsonify(title=item[0],headers=item[1],body=item[2],link="dnd.cosi.clarkson.edu/{}#{}".format(bucket.lower(),item[0].replace(' ','%20')))
if __name__ == "__main__":

Loading…
Cancel
Save