v2 html: minor fix

v2
Igor Chubin 5 years ago
parent 192e633607
commit acb761be0d

@ -544,10 +544,9 @@ def main(query, parsed_query, data):
else: else:
data_parsed = data data_parsed = data
parsed_query["text"] = "no"
filename = "b_" + parse_query.serialize(parsed_query) + ".png"
if html_output: if html_output:
parsed_query["text"] = "no"
filename = "b_" + parse_query.serialize(parsed_query) + ".png"
output = """ output = """
<html> <html>
<head> <head>

@ -247,7 +247,7 @@ def parse_request(location, request, query, fast_mode=False):
Return: dictionary with parsed parameters Return: dictionary with parsed parameters
""" """
if location.startswith("b_"): if location and location.startswith("b_"):
result = parse_query.deserialize(location) result = parse_query.deserialize(location)
result["request_url"] = request.url result["request_url"] = request.url
if result: if result:

Loading…
Cancel
Save