forked from indymedia/epicyon
Remove debug
parent
8283edd34e
commit
96775d6d66
1
posts.py
1
posts.py
|
@ -2406,7 +2406,6 @@ def archivePostsForPerson(httpPrefix: str,nickname: str,domain: str,baseDir: str
|
|||
|
||||
# remove cached html posts
|
||||
postCacheFilename=os.path.join(postCacheDir,postFilename).replace('.json','.html')
|
||||
print('CACHE: '+postCacheFilename)
|
||||
if os.path.isfile(postCacheFilename):
|
||||
os.remove(postCacheFilename)
|
||||
|
||||
|
|
2
utils.py
2
utils.py
|
@ -457,9 +457,7 @@ def getCachedPostFilename(baseDir: str,nickname: str,domain: str, \
|
|||
cachedPostFilename= \
|
||||
cachedPostDir+ \
|
||||
'/'+postJsonObject['id'].replace('/activity','').replace('/','#')
|
||||
print('CACHE: 1 '+nickname+' '+domain+' '+cachedPostFilename)
|
||||
cachedPostFilename=cachedPostFilename+'.html'
|
||||
print('CACHE: 2'+cachedPostFilename)
|
||||
return cachedPostFilename
|
||||
|
||||
def removePostFromCache(postJsonObject: {},recentPostsCache: {}):
|
||||
|
|
Loading…
Reference in New Issue