Skip to content
Snippets Groups Projects
Commit 9c01cd54 authored by Sara Savanovic Djordjevic's avatar Sara Savanovic Djordjevic
Browse files

update: add tolower to url param

parent 9021b0bb
No related branches found
No related tags found
1 merge request!19Clhp map, license agreement
...@@ -108,11 +108,11 @@ class IceHTTP(BaseHTTPRequestHandler): ...@@ -108,11 +108,11 @@ class IceHTTP(BaseHTTPRequestHandler):
try: try:
# Try to convert the value to a float and the map # Try to convert the value to a float and the map
cell_size_float = float(cell_size_param) cell_size_float = float(cell_size_param)
cut_map_handler(self, cursor, lake_name, cell_size_float) cut_map_handler(self, cursor, lake_name.lower(), cell_size_float)
except ValueError: except ValueError:
print("Error: cell_size_param is not a valid float") print("Error: cell_size_param is not a valid float")
else: else:
cut_map_handler(self, cursor, lake_name) cut_map_handler(self, cursor, lake_name.lower())
else: else:
self.send_response(400) self.send_response(400)
self.send_header('Content-type', 'application/json') self.send_header('Content-type', 'application/json')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment