Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
LAE
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
文靖昊
LAE
Commits
e0c67685
Commit
e0c67685
authored
Jul 18, 2024
by
文靖昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拼接字符串使用str
parent
a9027029
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
get_similarity.py
src/server/get_similarity.py
+2
-2
No files found.
src/server/get_similarity.py
View file @
e0c67685
...
...
@@ -60,7 +60,7 @@ class GetSimilarityWithExt:
d1
=
docs
[
0
]
page_number
=
"0"
if
"page_number"
in
d1
.
metadata
:
page_number
=
d1
.
metadata
[
"page_number"
]
page_number
=
str
(
d1
.
metadata
[
"page_number"
])
hash_str
=
""
if
"hash"
in
d1
.
metadata
:
hash_str
=
d1
.
metadata
[
"hash"
]
...
...
@@ -69,7 +69,7 @@ class GetSimilarityWithExt:
for
doc
in
docs
:
page_number
=
"0"
if
"page_number"
in
doc
.
metadata
:
page_number
=
doc
.
metadata
[
"page_number"
]
page_number
=
str
(
doc
.
metadata
[
"page_number"
])
hash_str
=
""
if
"hash"
in
doc
.
metadata
:
hash_str
=
doc
.
metadata
[
"hash"
]
...
...
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