有自定义Json参数的时候打印一下日志

This commit is contained in:
呆瓜云 2023-08-03 11:13:20 +08:00
parent 04acc85a9a
commit 292f0bbd67

View File

@ -141,8 +141,11 @@ class GMEEK():
try:
postConfig=json.loads(issue.body.split("\r\n")[-1:][0].split("##")[1])
print("Has Custom JSON parameters")
print(postConfig)
except:
postConfig={}
print("No Custom JSON parameters")
if "timestamp" in postConfig:
self.blogBase["postListJson"][postNum]["createdAt"]=postConfig["timestamp"]