From c4b81eb22d2f5a9d1ec913e348c41e6638149e86 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 1 Dec 2020 17:25:35 +0000 Subject: [PATCH] Tidying --- webapp_post.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/webapp_post.py b/webapp_post.py index 7ab1d8e2..d8265583 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -1131,20 +1131,14 @@ def individualPostAsHtml(allowDownloads: bool, # accurate timing of different parts of the code enableTimingLog = not allowDownloads - # benchmark 1 - timeDiff = int((time.time() - postStartTime) * 1000) - if timeDiff > 100: - print('TIMING INDIV ' + boxName + ' 1 = ' + str(timeDiff)) + logPostTiming(enableTimingLog, postStartTime, '1') avatarPosition = '' messageId = '' if postJsonObject.get('id'): messageId = removeIdEnding(postJsonObject['id']) - # benchmark 2 - timeDiff = int((time.time() - postStartTime) * 1000) - if timeDiff > 100: - print('TIMING INDIV ' + boxName + ' 2 = ' + str(timeDiff)) + logPostTiming(enableTimingLog, postStartTime, '2') messageIdStr = '' if messageId: