From 131c0aa8e83f04ad6c53428aaa5e2d55bcaab886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=86=E7=93=9C=E4=BA=91?= Date: Fri, 8 Sep 2023 11:06:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8D=95=E9=A1=B5=E9=9D=A2ru?= =?UTF-8?q?nOne=E6=8A=A5=E9=94=99=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gmeek.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Gmeek.py b/Gmeek.py index 9c9d666..57a7608 100644 --- a/Gmeek.py +++ b/Gmeek.py @@ -44,7 +44,7 @@ class GMEEK(): for label in self.repo.get_labels(): self.labelColorDict[label.name]='#'+label.color print(self.labelColorDict) - + self.defaultConfig() def cleanFile(self): @@ -249,6 +249,7 @@ class GMEEK(): f = open("backup/"+issue.title+".md", 'w', encoding='UTF-8') f.write(issue.body) f.close() + return listJsonName def runAll(self): print("====== start create static html ======") @@ -271,8 +272,8 @@ class GMEEK(): def runOne(self,number_str): print("====== start create static html ======") issue=self.repo.get_issue(int(number_str)) - self.addOnePostJson(issue) - self.createPostHtml(self.blogBase["postListJson"]["P"+number_str]) + listJsonName=self.addOnePostJson(issue) + self.createPostHtml(self.blogBase[listJsonName]["P"+number_str]) self.createPlistHtml() self.createFeedXml() print("====== create static html end ======")