From ad86f4d17b0a19762515f4332b8370107c31dacb Mon Sep 17 00:00:00 2001 From: jogordo Date: Sat, 24 Aug 2019 17:34:29 -0400 Subject: [PATCH] Update API --- app/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes.py b/app/routes.py index b197d07..c589abc 100644 --- a/app/routes.py +++ b/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__":