Timestamp queue items

master
Bob Mottram 2019-07-04 11:09:27 +01:00
parent 640cf71416
commit 0286de6cd1
1 changed files with 3 additions and 0 deletions

View File

@ -63,7 +63,10 @@ def savePostToInboxQueue(baseDir: str,httpPrefix: str,keyId: str,nickname: str,
return None
postId=postJson['id'].replace('/activity','')
currTime=datetime.datetime.utcnow()
published=currTime.strftime("%Y-%m-%dT%H:%M:%SZ")
newBufferItem = {
'published': published,
'keyId': keyid,
'post': postJson
}