Skip to content

Commit 75142b3

Browse files
committed
huge speed up (4x times faster)
1 parent f88aa4b commit 75142b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/utils/resume.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ def resume(expression, payload):
102102
return None
103103

104104
condition = (
105-
kb.resumedQueries and conf.url in kb.resumedQueries.keys()
106-
and expression in kb.resumedQueries[conf.url].keys()
105+
kb.resumedQueries and conf.url in kb.resumedQueries
106+
and expression in kb.resumedQueries[conf.url]
107107
)
108108

109109
if not condition:

0 commit comments

Comments
 (0)