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 27, 2024
1 parent bddc2bd commit 9f9595e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,6 @@ def _generate_markdown_content(self, paper: dict, pdf_link: str) -> str:

def _generate_markdown_table_content(self, paper: dict,tags=None):
# Formatting fields
print(f"convert=== {postname}")
paper['publish_time'] = f"**{paper['publish_time']}**"
# paper['title'] = f"**{paper['title']}"
paper['keywords'] = list(set(tags))
Expand All @@ -519,6 +518,8 @@ def _generate_markdown_table_content(self, paper: dict,tags=None):
## if filename start with __ ,astro post will 404
if postname.startswith('__'):
postname=postname.replace('__',"")
print(f"convert=== {postname}")

paper_path_appleblog=SERVER_PATH_STORAGE_MD.format(postname)
repo_url=os.getenv('repo')
repo_name=repo_url.split('/')[-1].replace('-',' ')
Expand Down

0 comments on commit 9f9595e

Please sign in to comment.