Skip to content

Commit

Permalink
New lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Winston-Hsiao committed Nov 20, 2024
1 parent aa728f2 commit e6a6fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/app/crud/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ async def _get_unique_item_from_secondary_index(
item_class: type[T],
throw_if_missing: bool = False,
) -> T | None:
if secondary_index_name not in item_class.model_fields:
if secondary_index_name not in item_class.model_fields.keys():
raise InternalError(f"Field '{secondary_index_name}' not in model {item_class.__name__}")
items = await self._get_items_from_secondary_index(
secondary_index_name,
Expand Down

0 comments on commit e6a6fae

Please sign in to comment.