Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
岳巧源
/
my-awesome-project
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
58fda511
authored
Jun 21, 2024
by
岳巧源
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
delete special character
parent
8a77d06e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
main.py
main.py
View file @
58fda511
...
...
@@ -96,7 +96,8 @@ def main():
for
j
in
range
(
len
(
ans
[
i
])):
tmp_goods_name
=
ans
[
i
][
j
]
tmp_query
=
query
tmp_query
[
"query"
][
"bool"
][
"must"
][
0
][
"match"
][
"goods_name"
]
=
tmp_goods_name
new_str
=
tmp_goods_name
.
replace
(
'/'
,
''
)
.
replace
(
'-'
,
''
)
tmp_query
[
"query"
][
"bool"
][
"must"
][
0
][
"match"
][
"goods_name"
]
=
new_str
tmp_map
=
process
(
tmp_query
,
tmp_goods_name
)
if
len
(
tmp_map
)
!=
0
:
score_in_one_row
.
append
(
tmp_map
)
...
...
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