Skip to content

Commit

Permalink
remove unset in row processing
Browse files Browse the repository at this point in the history
  • Loading branch information
jph00 committed Nov 1, 2024
1 parent ca2748d commit 2b34a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastlite/kw.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def transform_sql(
drop_foreign_keys=drop_foreign_keys, add_foreign_keys=add_foreign_keys, foreign_keys=foreign_keys,
column_order=column_order, keep_table=keep_table)

def _process_row(row): return {k:(v.value if isinstance(v, Enum) else v) for k,v in asdict(row).items()}
def _process_row(row): return {k:(v.value if isinstance(v, Enum) else v) for k,v in asdict(row).items() if v is not UNSET}

@patch
def update(self:Table, updates: dict|None=None, pk_values: list|tuple|str|int|float|None=None,
Expand Down

0 comments on commit 2b34a9d

Please sign in to comment.