Немного улучшен поиск (через несколько query)

This commit is contained in:
Jack Stdin
2016-02-02 23:28:20 +03:00
parent f2d71efe2e
commit 16a144205b
4 changed files with 32 additions and 21 deletions

View File

@@ -26,13 +26,10 @@ def normalize(aoid):
@app.route('/find/<text>')
@app.route('/find/<text>/<strong>')
def find(text, strong=False):
logging.warning("START")
strong = (strong == "strong")
response.content_type = 'application/json'
res = json.dumps(fias_factory.find(text, strong))
logging.warning("END")
return res
return json.dumps(fias_factory.find(text, strong))
@app.error(404)