diff options
author | Alexandre Flament <alex@al-f.net> | 2021-05-19 11:24:18 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-05-22 15:17:18 +0200 |
commit | ec834935381e5cfb4ebc3820ed2f668d0fc7855d (patch) | |
tree | 352d2253c3dc32f5b62e320537071c00f7b87858 /searx/results.py | |
parent | 2f76b570ab4dae3b2c85aaddddc41831548b1ff8 (diff) | |
download | searxng-ec834935381e5cfb4ebc3820ed2f668d0fc7855d.tar.gz searxng-ec834935381e5cfb4ebc3820ed2f668d0fc7855d.zip |
[fix] offline engine: don't crash on time recording
Diffstat (limited to 'searx/results.py')
-rw-r--r-- | searx/results.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/searx/results.py b/searx/results.py index a1c1d8527..d0cb4df3f 100644 --- a/searx/results.py +++ b/searx/results.py @@ -371,11 +371,12 @@ class ResultContainer: self.unresponsive_engines.add((engine_name, error_type, error_message, suspended)) def add_timing(self, engine_name, engine_time, page_load_time): - self.timings.append({ + timing = { 'engine': engines[engine_name].shortcut, 'total': engine_time, - 'load': page_load_time - }) + 'load': page_load_time, + } + self.timings.append(timing) def get_timings(self): return self.timings |