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
37fcb255
authored
Aug 03, 2022
by
陈森彬
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
2c73cee1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
utils/functions.py
valid_server.py
utils/functions.py
View file @
37fcb255
...
...
@@ -425,7 +425,11 @@ def check_price(kw_info):
if
res
:
return
res
[
0
][
0
]
.
strip
()
else
:
return
False
res
=
price_num_pattern
.
findall
(
kw_info
)
if
res
and
"+"
not
in
kw_info
:
return
res
[
0
]
.
strip
()
else
:
return
False
def
check_zh
(
kw_info
):
...
...
valid_server.py
View file @
37fcb255
...
...
@@ -222,7 +222,7 @@ class ImHandler(tornado.web.RequestHandler):
kw_word
=
kw_word
.
replace
(
num_res
,
""
)
price_res
=
check_price
(
kw_word
+
" "
)
if
price_res
:
if
price_res
and
data_obj
[
"gn"
]
:
data_obj
[
"price"
]
=
price_res
if
k_res
or
pcs_res
or
num_res
or
price_res
:
new_cut_info
=
new_cut_info
.
replace
(
list_info
,
""
)
...
...
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