forked from indymedia/epicyon
List index
parent
74a0b0b2c1
commit
6572e57d9d
12
posts.py
12
posts.py
|
@ -2297,11 +2297,9 @@ def archivePostsForPerson(httpPrefix: str,nickname: str,domain: str,baseDir: str
|
||||||
publishedStr=content.split('"published":')[1]
|
publishedStr=content.split('"published":')[1]
|
||||||
if '"' in publishedStr:
|
if '"' in publishedStr:
|
||||||
publishedStr=publishedStr.split('"')[1]
|
publishedStr=publishedStr.split('"')[1]
|
||||||
print('publishedStr: '+publishedStr)
|
if publishedStr.endswith('Z'):
|
||||||
postsInBoxDict[secondsSinceEpoch]=postFilename
|
postsInBoxDict[publishedStr]=postFilename
|
||||||
postsCtr+=1
|
postsCtr+=1
|
||||||
|
|
||||||
return
|
|
||||||
|
|
||||||
noOfPosts=postsCtr
|
noOfPosts=postsCtr
|
||||||
if noOfPosts<=maxPostsInBox:
|
if noOfPosts<=maxPostsInBox:
|
||||||
|
@ -2313,7 +2311,9 @@ def archivePostsForPerson(httpPrefix: str,nickname: str,domain: str,baseDir: str
|
||||||
# directory containing cached html posts
|
# directory containing cached html posts
|
||||||
postCacheDir=boxDir.replace('/'+boxname,'/postcache')
|
postCacheDir=boxDir.replace('/'+boxname,'/postcache')
|
||||||
|
|
||||||
for secondsSinceEpoch,postFilename in postsInBoxSorted.items():
|
for publishedStr,postFilename in postsInBoxSorted.items():
|
||||||
|
print('publishedStr: '+publishedStr)
|
||||||
|
break
|
||||||
filePath=os.path.join(boxDir,postFilename)
|
filePath=os.path.join(boxDir,postFilename)
|
||||||
if not os.path.isfile(filePath):
|
if not os.path.isfile(filePath):
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue