Skip to content

Commit

Permalink
Fix readability of long statement
Browse files Browse the repository at this point in the history
Adds spaces and indents to an extremely long statement in `model.save()`
  • Loading branch information
BAPCon committed Aug 15, 2024
1 parent b1d43f1 commit 8cef0cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pyairtable/orm/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,11 @@ def save(self, fields: Optional[List[str]] = None) -> bool:
if fields:
# Convert ORM attribute names to Airtable field names
update_fields = {
attribute_map[field].field_name: None if self._fields.get(attribute_map[field].field_name) is None else attribute_map[field].to_record_value(self._fields.get(attribute_map[field].field_name))
attribute_map[field].field_name: None
if self._fields.get(attribute_map[field].field_name) is None
else attribute_map[field].to_record_value(
self._fields.get(attribute_map[field].field_name)
)
for field in fields
if field in attribute_map and not attribute_map[field].readonly
}
Expand Down

0 comments on commit 8cef0cb

Please sign in to comment.