Applied Black

This commit is contained in:
Simon Willison 2020-09-22 17:32:40 -07:00
commit 5534c320e4
2 changed files with 8 additions and 8 deletions

View file

@ -741,9 +741,9 @@ class Table(Queryable):
defaults=defaults,
drop_foreign_keys=drop_foreign_keys,
)
pragma_foreign_keys_was_on = self.db.execute(
"PRAGMA foreign_keys"
).fetchone()[0]
pragma_foreign_keys_was_on = self.db.execute("PRAGMA foreign_keys").fetchone()[
0
]
try:
if pragma_foreign_keys_was_on:
self.db.execute("PRAGMA foreign_keys=0;")