From f7ea52be7f9d685fb129bf6636a2288e3f2eda24 Mon Sep 17 00:00:00 2001 From: Meekdai Date: Thu, 15 Aug 2024 18:19:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=85=B3=E9=97=AD=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E7=9A=84issue=E7=BC=96=E8=BE=91=E5=90=8E=E4=BC=9A?= =?UTF-8?q?=E8=A2=AB=E6=8A=93=E5=8F=96=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gmeek.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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: