有自定义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: try:
postConfig=json.loads(issue.body.split("\r\n")[-1:][0].split("##")[1]) postConfig=json.loads(issue.body.split("\r\n")[-1:][0].split("##")[1])
print("Has Custom JSON parameters")
print(postConfig)
except: except:
postConfig={} postConfig={}
print("No Custom JSON parameters")
if "timestamp" in postConfig: if "timestamp" in postConfig:
self.blogBase["postListJson"][postNum]["createdAt"]=postConfig["timestamp"] self.blogBase["postListJson"][postNum]["createdAt"]=postConfig["timestamp"]