fileidをstrへ返還
Browse files
app.py
CHANGED
@@ -14,11 +14,11 @@ def greet(query):
|
|
14 |
fileid = query
|
15 |
|
16 |
if query in autov22fileid:
|
17 |
-
fileid = autov22fileid[query]
|
18 |
if query in filename2fileid:
|
19 |
-
fileid = filename2fileid[query]
|
20 |
if query in name2fileid:
|
21 |
-
fileid = name2fileid[query]
|
22 |
|
23 |
if fileid in fileid2json:
|
24 |
result = json.dumps(fileid2json[query.strip()])
|
|
|
14 |
fileid = query
|
15 |
|
16 |
if query in autov22fileid:
|
17 |
+
fileid = str(autov22fileid[query])
|
18 |
if query in filename2fileid:
|
19 |
+
fileid = str(filename2fileid[query])
|
20 |
if query in name2fileid:
|
21 |
+
fileid = str(name2fileid[query])
|
22 |
|
23 |
if fileid in fileid2json:
|
24 |
result = json.dumps(fileid2json[query.strip()])
|