修复新增label无颜色的BUG
This commit is contained in:
parent
1efcf279d5
commit
72df0007a9
6
Gmeek.py
6
Gmeek.py
@ -52,9 +52,8 @@ class GMEEK():
|
||||
for label in self.repo.get_labels():
|
||||
self.labelColorDict[label.name]='#'+label.color
|
||||
print(self.labelColorDict)
|
||||
|
||||
self.defaultConfig()
|
||||
|
||||
|
||||
def cleanFile(self):
|
||||
workspace_path = os.environ.get('GITHUB_WORKSPACE')
|
||||
if os.path.exists(workspace_path+"/"+self.backup_dir):
|
||||
@ -86,7 +85,6 @@ class GMEEK():
|
||||
else:
|
||||
print("static does not exist")
|
||||
|
||||
|
||||
def defaultConfig(self):
|
||||
dconfig={"singlePage":[],"startSite":"","filingNum":"","onePageListNum":15,"commentLabelColor":"#006b75","yearColorList":["#bc4c00", "#0969da", "#1f883d", "#A333D0"],"i18n":"CN","themeMode":"manual","dayTheme":"light","nightTheme":"dark","urlMode":"pinyin","script":"","style":"","head":"","indexScript":"","indexStyle":"","bottomText":"","showPostSource":1,"iconList":{},"UTC":+8,"rssSplit":"sentence","exlink":{},"needComment":1,"allHead":""}
|
||||
config=json.loads(open('config.json', 'r', encoding='utf-8').read())
|
||||
@ -465,8 +463,8 @@ else:
|
||||
oldBlogBase=json.loads(f.read())
|
||||
for key, value in oldBlogBase.items():
|
||||
blog.blogBase[key] = value
|
||||
|
||||
f.close()
|
||||
blog.blogBase["labelColorDict"]=blog.labelColorDict
|
||||
blog.runOne(options.issue_number)
|
||||
|
||||
listFile=open("blogBase.json","w")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user