diff --git a/fastlite/kw.py b/fastlite/kw.py index 41230b2..8091c92 100644 --- a/fastlite/kw.py +++ b/fastlite/kw.py @@ -59,7 +59,7 @@ def get(self:Table, pk_values: list|tuple|str|int, as_cls:bool=True)->Any: if not isinstance(pk_values, (list, tuple)): pk_values = [pk_values] last_pk = pk_values[0] if len(self.pks) == 1 else pk_values xtra = getattr(self, 'xtra_id', {}) - vals = pk_values + list(xtra.values()) + vals = list(pk_values) + list(xtra.values()) pks = self.pks + list(xtra.keys()) if len(pks)!=len(vals): raise NotFoundError(f"Need {len(pks)} pk") wheres = ["[{}] = ?".format(pk_name) for pk_name in pks]