mirror of https://gitlab.com/bashrc2/epicyon
debug flag
parent
a9db0b03ab
commit
673247abf0
9
inbox.py
9
inbox.py
|
@ -2414,7 +2414,9 @@ def inboxAfterCapabilities(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
print('ERROR: unable to update ' + boxname + ' index')
|
print('ERROR: unable to update ' + boxname + ' index')
|
||||||
else:
|
else:
|
||||||
if not unitTest:
|
if not unitTest:
|
||||||
|
if debug:
|
||||||
print('Saving inbox post as html to cache')
|
print('Saving inbox post as html to cache')
|
||||||
|
|
||||||
htmlCacheStartTime = time.time()
|
htmlCacheStartTime = time.time()
|
||||||
inboxStorePostToHtmlCache(recentPostsCache,
|
inboxStorePostToHtmlCache(recentPostsCache,
|
||||||
maxRecentPosts,
|
maxRecentPosts,
|
||||||
|
@ -2427,9 +2429,12 @@ def inboxAfterCapabilities(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
postJsonObject,
|
postJsonObject,
|
||||||
allowDeletion,
|
allowDeletion,
|
||||||
boxname)
|
boxname)
|
||||||
|
if debug:
|
||||||
timeDiff = \
|
timeDiff = \
|
||||||
str(int((time.time() - htmlCacheStartTime) * 1000))
|
str(int((time.time() - htmlCacheStartTime) *
|
||||||
print('Saved inbox post as html to cache in ' +
|
1000))
|
||||||
|
print('Saved ' + boxname +
|
||||||
|
' post as html to cache in ' +
|
||||||
timeDiff + ' mS')
|
timeDiff + ' mS')
|
||||||
|
|
||||||
inboxUpdateCalendar(baseDir, handle, postJsonObject)
|
inboxUpdateCalendar(baseDir, handle, postJsonObject)
|
||||||
|
|
Loading…
Reference in New Issue