Browse Source

Check for "data" key in resources page and return false if it's not

there
master
wes 9 years ago
parent
commit
88f426bdbb
  1. 5
      src/website.py

5
src/website.py

@ -102,7 +102,10 @@ def ClassSearch(configfile=None):
def resources():
""" Get Resources """
notRequired = False
params = loads(dict(request.args.items())["data"])
try:
params = loads(dict(request.args.items())["data"])
except KeyError:
return dumps("false")
print params
author = params["author"]
title = params["title"]

Loading…
Cancel
Save