From 0286de6cd1b939f3daa4f76fabc229761b66b4dd Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 4 Jul 2019 11:09:27 +0100 Subject: [PATCH] Timestamp queue items --- inbox.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inbox.py b/inbox.py index d7d304644..1916f56c7 100644 --- a/inbox.py +++ b/inbox.py @@ -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 }