mirror of https://gitlab.com/bashrc2/epicyon
Remove ending for conversation id
parent
4cc4e7b2c7
commit
131aabdc03
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue