Commit fa66e9d8 authored by Łukasz Nowak's avatar Łukasz Nowak

Ask recalculation each minute.

parent 5097e87c
...@@ -192,8 +192,8 @@ class SlapTool(BaseTool): ...@@ -192,8 +192,8 @@ class SlapTool(BaseTool):
entry = None entry = None
if entry is not None and type(entry.getValue()) == type({}): if entry is not None and type(entry.getValue()) == type({}):
result = entry.getValue()['data'] result = entry.getValue()['data']
if time.time() - entry.getValue()['time'] > 60 * 5: if time.time() - entry.getValue()['time'] > 60 * 1:
# entry was stored 5 minutes ago, ask for recalculation # entry was stored 1 minutes ago, ask for recalculation
self._activateFillComputerInformationCache(computer_id, user, full) self._activateFillComputerInformationCache(computer_id, user, full)
return result return result
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment