有自定义Json参数的时候打印一下日志
This commit is contained in:
parent
04acc85a9a
commit
292f0bbd67
3
Gmeek.py
3
Gmeek.py
@ -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"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user