Skip to content

Commit 5201e17

Browse files
committed
Applied Black
1 parent 9494820 commit 5201e17

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

datasette_write_ui/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ def register_routes():
99
(r"^/-/datasette-write-ui/insert-row-details$", routes.insert_row_details),
1010
]
1111

12+
1213
@hookimpl
1314
def extra_template_vars(datasette, database, table):
1415
async def permission_allowed(actor, permission):
1516
return await datasette.permission_allowed(actor, permission, (database, table))
1617

1718
return {"permission_allowed": permission_allowed}
18-
19-

datasette_write_ui/routes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from datasette.utils import escape_sqlite, tilde_decode
33
from typing import Any, TypedDict
44

5+
56
def affinity_from_type(type):
67
"""
78
Return the "affinity" a SQLite column type has.
@@ -23,8 +24,6 @@ def affinity_from_type(type):
2324
return "numeric"
2425

2526

26-
27-
2827
class EditRowDetailsField(TypedDict):
2928
"""
3029
Each "field" returned for every editable column in the edit-row-details route.
@@ -36,6 +35,7 @@ class EditRowDetailsField(TypedDict):
3635
pk: bool
3736
editable: bool
3837

38+
3939
async def edit_row_details(scope, receive, datasette, request):
4040
db_name = request.args.get("db")
4141
table_name = request.args.get("table")

0 commit comments

Comments
 (0)