Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghaisheng committed Jul 8, 2024
1 parent 271a76f commit d66017d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def runtime(self, context: dict):
self.worker.put_nowait(context)


def clean_paper_title(title):
def clean_paper_title(self,title):
"""
Cleans the paper title by removing non-meaningful characters, supporting Unicode characters from various languages.
Expand Down Expand Up @@ -182,7 +182,7 @@ def parse(self, context):

paper_id = result.get_short_id()
paper_title = result.title
paper_title=clean_paper_title(papaer_title)
paper_title=self.clean_paper_title(papaer_title)
paper_title=paper_title.replace("'","\'")
paper_url = result.entry_id
paper_abstract= result.summary.strip().replace('\n',' ').replace('\r'," ")
Expand Down

0 comments on commit d66017d

Please sign in to comment.