diff options
Diffstat (limited to 'app.py')
-rw-r--r-- | app.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -4,6 +4,7 @@ import json import string import random import re +import html from utils import get_drinks_like from collections import defaultdict @@ -149,6 +150,7 @@ def search(): q = request.form.get('q') if not q: return redirect('/') + q = html.escape(q) brewery, beer_name = q.split(' — ') print('SEARCHING: ', q) beer_id, brewery_id = name_list[q].split('-') |