def license_page(): """License lookup form render""" # Check for badge query params and load if it exists. license = request.args.get("license") html = dataset.license_lookup(license) # Return the basic lookup form if not return render_template("index.html", **LICENSE_CONTEXT, entity_html=html)
def license_lookup(license): # LEGACY DO NOT TOUCH html = dataset.license_lookup(license) return render_template("index.html", **LICENSE_CONTEXT, entity_html=html)