Skip to content

Commit 3742fe9

Browse files
author
Matthew Laird
committed
Minor tweaks to hopefully make Scritinizer happy.
1 parent 318fbc4 commit 3742fe9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

psqlextra/manager/manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ def bulk_insert(self, rows, return_model=False):
163163
compiler = self._build_insert_compiler(rows)
164164
objs = compiler.execute_sql(return_id=True)
165165
if return_model:
166-
return [ self.model(**dict(r, **k)) for r,k in zip(rows,objs) ]
166+
return [self.model(**dict(r, **k)) for r, k in zip(rows, objs)]
167167
else:
168-
return [ dict(r, **k) for r,k in zip(rows,objs) ]
168+
return [dict(r, **k) for r, k in zip(rows, objs)]
169169

170170
# no special action required, use the standard Django bulk_create(..)
171171
return super().bulk_create([self.model(**fields) for fields in rows])

0 commit comments

Comments
 (0)