From 76accddc4adac6216d0310ea71fe77b61ed3e36f Mon Sep 17 00:00:00 2001 From: Jeremy Howard Date: Tue, 4 Jun 2024 13:07:08 +1000 Subject: [PATCH] format --- fastlite/kw.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fastlite/kw.py b/fastlite/kw.py index f1d33c9..c0efda8 100644 --- a/fastlite/kw.py +++ b/fastlite/kw.py @@ -58,8 +58,7 @@ def get(self:Table, pk_values: list|tuple|str|int, as_cls:bool=True)->Any: item = first(self.ids_and_rows_where(" and ".join(wheres), vals)) if not item: raise NotFoundError rid,row = item - self.last_pk = last_pk - self.last_rowid = rid + self.last_pk,self.last_rowid = last_pk,rid if as_cls and hasattr(self,'cls'): row = self.cls(**row) return row