Commit e10d5414 authored by Nivesh Krishna's avatar Nivesh Krishna
Browse files

replace % with 0.01

parent 6f00ff30
...@@ -29,7 +29,7 @@ def post_search(request, search): ...@@ -29,7 +29,7 @@ def post_search(request, search):
# Replace all frequently used substitutes # Replace all frequently used substitutes
query = query.replace("x", "*") query = query.replace("x", "*")
query = query.replace("^", "**") query = query.replace("^", "**")
query = query.replace("%", "*0.01") query = query.replace("%", "*(0.01)*")
# Not going to compute if only one number is present # Not going to compute if only one number is present
try: try:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment