Skip to content

Commit

Permalink
ensure index strategy currency
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed Nov 13, 2024
1 parent 9c88139 commit b7a5ae9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion share/search/index_strategy/_base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import abc
import functools
import logging
import typing

Expand Down Expand Up @@ -63,8 +64,9 @@ def indexname_prefix(self):
def indexname_wildcard(self):
return f'{self.indexname_prefix}*'

@property
@functools.cached_property
def current_indexname(self):
self.assert_strategy_is_current()
return ''.join((
self.indexname_prefix,
self.CURRENT_STRATEGY_CHECKSUM.hexdigest,
Expand Down

0 comments on commit b7a5ae9

Please sign in to comment.