Skip to content

Commit

Permalink
fix: Make mypy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Jun 24, 2024
1 parent 990be69 commit 79f3916
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lookyloo/capturecache.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def _quick_init(self) -> None:
return None
p = self.redis.pipeline()
has_new_cached_captures = False
recent_captures = {}
recent_captures: dict[str, float] = {}
for uuid, directory in self.redis.hscan_iter('lookup_dirs'):
if uuid in self.__cache:
continue
Expand All @@ -291,7 +291,7 @@ def _quick_init(self) -> None:
if hasattr(cc, 'timestamp'):
recent_captures[cc.uuid] = cc.timestamp.timestamp()
if recent_captures:
self.redis.zadd('recent_captures', recent_captures, nx=True)
self.redis.zadd('recent_captures', mapping=recent_captures, nx=True) # type: ignore[arg-type]

def _get_capture_dir(self, uuid: str) -> str:
# Try to get from the recent captures cache in redis
Expand Down

0 comments on commit 79f3916

Please sign in to comment.