File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
underground_route_planner Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ <h2 class="header-block-subheading mb-0">Find the shortest path for your request
19
19
< div class ="row ">
20
20
< div class ="col-lg-3 ">
21
21
< p class ="selection-title from-title "> From</ p >
22
- < input type ="text " name ="origin-location " id ="origin-location " placeholder ="Origin Location " />
22
+ < input type ="text " name ="origin-location " id ="origin-location " placeholder ="Origin Location " style =" width: 100%; " />
23
23
</ div >
24
24
< div class ="col-lg-3 ">
25
25
< p class ="selection-title to-title "> To</ p >
26
- < input type ="text " name ="destination-location " id ="destination-location " placeholder ="Destination Location " />
26
+ < input type ="text " name ="destination-location " id ="destination-location " placeholder ="Destination Location " style =" width: 100%; " />
27
27
</ div >
28
28
< div class ="col-lg-2 ">
29
29
< p class ="selection-title at-title "> At</ p >
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ def route_search(request):
59
59
)
60
60
61
61
# Simple check to ensure parameter is string and within length limits.
62
- if ((not isinstance (value [1 ], str )) or (3 > len (value [1 ])) or (25 < len (value [1 ])) or (value [1 ] is None ) or (value [1 ] == "" )):
62
+ if ((not isinstance (value [1 ], str )) or (3 >= len (value [1 ])) or (27 <= len (value [1 ])) or (value [1 ] is None ) or (value [1 ] == "" )):
63
63
# Return invalid message
64
64
return JsonResponse (
65
65
{
You can’t perform that action at this time.
0 commit comments