Remove debug

main
Bob Mottram 2019-11-29 23:34:21 +00:00
parent 8283edd34e
commit 96775d6d66
2 changed files with 0 additions and 3 deletions

View File

@ -2406,7 +2406,6 @@ def archivePostsForPerson(httpPrefix: str,nickname: str,domain: str,baseDir: str
# remove cached html posts # remove cached html posts
postCacheFilename=os.path.join(postCacheDir,postFilename).replace('.json','.html') postCacheFilename=os.path.join(postCacheDir,postFilename).replace('.json','.html')
print('CACHE: '+postCacheFilename)
if os.path.isfile(postCacheFilename): if os.path.isfile(postCacheFilename):
os.remove(postCacheFilename) os.remove(postCacheFilename)

View File

@ -457,9 +457,7 @@ def getCachedPostFilename(baseDir: str,nickname: str,domain: str, \
cachedPostFilename= \ cachedPostFilename= \
cachedPostDir+ \ cachedPostDir+ \
'/'+postJsonObject['id'].replace('/activity','').replace('/','#') '/'+postJsonObject['id'].replace('/activity','').replace('/','#')
print('CACHE: 1 '+nickname+' '+domain+' '+cachedPostFilename)
cachedPostFilename=cachedPostFilename+'.html' cachedPostFilename=cachedPostFilename+'.html'
print('CACHE: 2'+cachedPostFilename)
return cachedPostFilename return cachedPostFilename
def removePostFromCache(postJsonObject: {},recentPostsCache: {}): def removePostFromCache(postJsonObject: {},recentPostsCache: {}):