Skip to content

Commit 148a6aa

Browse files
committed
Update Gmeek.py
1 parent 30e09c6 commit 148a6aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Gmeek.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,10 +484,12 @@ def createFileName(self,issue,useLabel=False):
484484
del blog.blogBase["postListJson"][i]["createdAt"]
485485
del blog.blogBase["postListJson"][i]["script"]
486486
del blog.blogBase["postListJson"][i]["style"]
487-
del blog.blogBase["postListJson"][i]["head"]
488487
del blog.blogBase["postListJson"][i]["top"]
489488
del blog.blogBase["postListJson"][i]["ogImage"]
490489

490+
if 'head' in blog.blogBase["postListJson"][i]:
491+
del blog.blogBase["postListJson"][i]["head"]
492+
491493
if 'commentNum' in blog.blogBase["postListJson"][i]:
492494
commentNumSum=commentNumSum+blog.blogBase["postListJson"][i]["commentNum"]
493495
del blog.blogBase["postListJson"][i]["commentNum"]

0 commit comments

Comments
 (0)