Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lichenggang
/
bom_identify
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7b76ccf2
authored
Jun 04, 2020
by
lichenggang
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
unquote
parent
e1f97998
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
http_server.py
http_server.py
View file @
7b76ccf2
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import
json
from
urllib.parse
import
quote
from
urllib.parse
import
un
quote
import
tornado.web
import
tornado.ioloop
...
...
@@ -19,7 +19,7 @@ class BaseHandler(tornado.web.RequestHandler):
class
KwHandler
(
BaseHandler
):
async
def
get
(
self
):
target
=
quote
(
self
.
get_argument
(
'keyword'
))
target
=
un
quote
(
self
.
get_argument
(
'keyword'
))
res
=
self
.
predictorfac
.
predict
(
target
)
res
[
'status'
]
=
1
self
.
write
(
res
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment