merge-requests/8/head
Bob Mottram 2020-10-09 13:35:37 +01:00
parent 0aa5ce374b
commit fe9047929f
1 changed files with 2 additions and 0 deletions

View File

@ -552,9 +552,11 @@ def locateNewsArrival(baseDir: str, domain: str,
accountDir = baseDir + '/accounts/news@' + domain + '/'
postFilename = accountDir + 'outbox/' + postUrl
print('Arrival: ' + str(postFilename))
if os.path.isfile(postFilename):
with open(postFilename, 'r') as arrivalFile:
arrival = arrivalFile.read()
print('Arrival: content ' + str(arrival))
if arrival:
arrivalDate = \
datetime.strptime(arrival, "%Y-%m-%dT%H:%M:%SZ")