mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
0aa5ce374b
commit
fe9047929f
2
utils.py
2
utils.py
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue