check flask query parameters has value if not set default code example
Example: request.args.get check if defined
opt_param = request.args.get("something")
if opt_param is None:
print "Argument not provided"
opt_param = request.args.get("something")
if opt_param is None:
print "Argument not provided"