cakiki commited on
Commit
65124fb
1 Parent(s): dc8c26d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ from elasticsearch_dsl import Search, Q
14
  es = Elasticsearch(os.environ.get("host"), timeout=200)
15
  def mark_tokens_bold(string, query):
16
  if query.startswith('"') and query.endswith('"'):
17
- tokens = query
18
  else:
19
  tokens = query.split(" ")
20
  for token in tokens:
 
14
  es = Elasticsearch(os.environ.get("host"), timeout=200)
15
  def mark_tokens_bold(string, query):
16
  if query.startswith('"') and query.endswith('"'):
17
+ tokens = query[1:-1]
18
  else:
19
  tokens = query.split(" ")
20
  for token in tokens: