Remove ending for conversation id

main
Bob Mottram 2021-09-28 10:44:30 +01:00
parent 4cc4e7b2c7
commit 131aabdc03
1 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ __module_group__ = "Timeline"
import os import os
from utils import hasObjectDict from utils import hasObjectDict
from utils import acctDir from utils import acctDir
from utils import removeIdEnding
def updateConversation(baseDir: str, nickname: str, domain: str, def updateConversation(baseDir: str, nickname: str, domain: str,
@ -27,7 +28,7 @@ def updateConversation(baseDir: str, nickname: str, domain: str,
os.mkdir(conversationDir) os.mkdir(conversationDir)
conversationId = postJsonObject['object']['conversation'] conversationId = postJsonObject['object']['conversation']
conversationId = conversationId.replace('/', '#') conversationId = conversationId.replace('/', '#')
postId = postJsonObject['object']['id'] postId = removeIdEnding(postJsonObject['object']['id'])
conversationFilename = conversationDir + '/' + conversationId conversationFilename = conversationDir + '/' + conversationId
if not os.path.isfile(conversationFilename): if not os.path.isfile(conversationFilename):
try: try: