Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
jph00 committed Jun 4, 2024
1 parent f9d5cd8 commit 76accdd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fastlite/kw.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 76accdd

Please sign in to comment.