Skip to content

Commit

Permalink
修复关闭状态的issue编辑后会被抓取的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
Meekdai committed Aug 15, 2024
1 parent 8beb6d3 commit f7ea52b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Gmeek.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,11 +422,14 @@ def runAll(self):
def runOne(self,number_str):
print("====== start create static html ======")
issue=self.repo.get_issue(int(number_str))
listJsonName=self.addOnePostJson(issue)
self.createPostHtml(self.blogBase[listJsonName]["P"+number_str])
self.createPlistHtml()
self.createFeedXml()
print("====== create static html end ======")
if issue.state == "open":
listJsonName=self.addOnePostJson(issue)
self.createPostHtml(self.blogBase[listJsonName]["P"+number_str])
self.createPlistHtml()
self.createFeedXml()
print("====== create static html end ======")
else:
print("====== issue is closed ======")

def createFileName(self,issue,useLabel=False):
if useLabel==True:
Expand Down

0 comments on commit f7ea52b

Please sign in to comment.