mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Undid some slightly weird code formatting by 'black'
This commit is contained in:
parent
0a02517eac
commit
1c5e386a22
1 changed files with 2 additions and 10 deletions
|
|
@ -200,11 +200,7 @@ class TableView(RowTableShared):
|
||||||
"SELECT count(*) from sqlite_master WHERE type = 'view' and name=:n",
|
"SELECT count(*) from sqlite_master WHERE type = 'view' and name=:n",
|
||||||
{"n": table},
|
{"n": table},
|
||||||
)
|
)
|
||||||
)[
|
)[0][0]
|
||||||
0
|
|
||||||
][
|
|
||||||
0
|
|
||||||
]
|
|
||||||
)
|
)
|
||||||
view_definition = None
|
view_definition = None
|
||||||
table_definition = None
|
table_definition = None
|
||||||
|
|
@ -215,11 +211,7 @@ class TableView(RowTableShared):
|
||||||
'select sql from sqlite_master where name = :n and type="view"',
|
'select sql from sqlite_master where name = :n and type="view"',
|
||||||
{"n": table},
|
{"n": table},
|
||||||
)
|
)
|
||||||
)[
|
)[0][0]
|
||||||
0
|
|
||||||
][
|
|
||||||
0
|
|
||||||
]
|
|
||||||
else:
|
else:
|
||||||
table_definition_rows = list(
|
table_definition_rows = list(
|
||||||
await self.execute(
|
await self.execute(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue