From be96800473de3e2a708206148e7066f8154578db Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 29 Nov 2019 13:54:25 +0000 Subject: [PATCH] oneOf --- posts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posts.py b/posts.py index 1d39910d..585da6d4 100644 --- a/posts.py +++ b/posts.py @@ -847,14 +847,14 @@ def createQuestionPost(baseDir: str, False,None,None,subject, \ None,None,None) messageJson['object']['type']='Question' - messageJson['object']['oneof']=[] + messageJson['object']['oneOf']=[] messageJson['object']['votersCount']=0 currTime=datetime.datetime.utcnow() daysSinceEpoch=int((currTime - datetime.datetime(1970,1,1)).days + durationDays) endTime=datetime.datetime(1970,1,1) + datetime.timedelta(daysSinceEpoch) messageJson['object']['endTime']=endTime.strftime("%Y-%m-%dT%H:%M:%SZ") for questionOption in qOptions: - messageJson['object']['oneof'].append({ + messageJson['object']['oneOf'].append({ "type": "Note", "name": questionOption, "replies": {