mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-10-31 18:05:22 +00:00
Fix cache filename
This commit is contained in:
1 parent
0bbede6a83
commit
dcf34cd3c2
1 file changed
+2
-2
@@ -591,14 +591,14 @@ def clearFromPostCaches(baseDir: str, postId: str) -> None:
|
||||
"""Clears cached html for the given post, so that edits
|
||||
to news will appear
|
||||
"""
|
||||
filename = postId + '.html'
|
||||
filename = '/postcache/' + postId + '.html'
|
||||
for subdir, dirs, files in os.walk(baseDir + '/accounts'):
|
||||
for acct in dirs:
|
||||
if '@' not in acct:
|
||||
continue
|
||||
if 'inbox@' in acct:
|
||||
continue
|
||||
cacheDir = os.path.join(baseDir + '/accounts/postcache', acct)
|
||||
cacheDir = os.path.join(baseDir + '/accounts', acct)
|
||||
postFilename = cacheDir + filename
|
||||
print('clearFromPostCaches: ' + postFilename)
|
||||
if os.path.isfile(postFilename):
|
||||
|
||||
Reference in new issue
Block a user