fix: Typo breaking index.

Fix #922
pull/923/head
Raphaël Vinot 2024-06-24 16:54:01 +02:00
parent 74e0f851b2
commit 990be698a0
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ class CapturesIndex(Mapping): # type: ignore[type-arg]
continue continue
self.__cache[cc.uuid] = cc self.__cache[cc.uuid] = cc
if hasattr(cc, 'timestamp'): if hasattr(cc, 'timestamp'):
recent_captures[uuid] = cc.timestamp.timestamp() recent_captures[cc.uuid] = cc.timestamp.timestamp()
if recent_captures: if recent_captures:
self.redis.zadd('recent_captures', recent_captures, nx=True) self.redis.zadd('recent_captures', recent_captures, nx=True)