hit条件少し変更
Browse files
app.py
CHANGED
@@ -58,7 +58,6 @@ def greet(query):
|
|
58 |
if query in name2fileid:
|
59 |
fileid = str(name2fileid[query])
|
60 |
fileids.add(fileid)
|
61 |
-
hit = True
|
62 |
if hit is not True:
|
63 |
for k, v in [(k.lower(), v) for k, v in name2fileid.items()]:
|
64 |
if re.search(re.compile(query), k):
|
|
|
58 |
if query in name2fileid:
|
59 |
fileid = str(name2fileid[query])
|
60 |
fileids.add(fileid)
|
|
|
61 |
if hit is not True:
|
62 |
for k, v in [(k.lower(), v) for k, v in name2fileid.items()]:
|
63 |
if re.search(re.compile(query), k):
|