mirror of https://gitlab.com/bashrc2/epicyon
Only create scheduled posts if there is a date and time given
parent
7d6b74e961
commit
9744db2339
4
posts.py
4
posts.py
|
@ -718,7 +718,11 @@ def createPostBase(baseDir: str,nickname: str,domain: str,port: int, \
|
||||||
if saveToFile:
|
if saveToFile:
|
||||||
outboxName='outbox'
|
outboxName='outbox'
|
||||||
if schedulePost:
|
if schedulePost:
|
||||||
|
if eventDate and eventTime:
|
||||||
outboxName='scheduled'
|
outboxName='scheduled'
|
||||||
|
else:
|
||||||
|
print('Unable to create scheduled post without date and time values')
|
||||||
|
return newPost
|
||||||
savePostToBox(baseDir,httpPrefix,newPostId, \
|
savePostToBox(baseDir,httpPrefix,newPostId, \
|
||||||
nickname,domain,newPost,outboxName)
|
nickname,domain,newPost,outboxName)
|
||||||
return newPost
|
return newPost
|
||||||
|
|
Loading…
Reference in New Issue