diff --git a/Gmeek.py b/Gmeek.py index cd90c4d..9f6e7ae 100644 --- a/Gmeek.py +++ b/Gmeek.py @@ -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: