mirror of
https://github.com/simonw/datasette.git
synced 2026-06-07 01:27:00 +02:00
Run black formatter
This commit is contained in:
parent
b5f41772ca
commit
60a38cee85
14 changed files with 222 additions and 80 deletions
|
|
@ -450,7 +450,10 @@ async def build_permission_rules_sql(
|
|||
# Build the UNION query
|
||||
if not rule_sqls:
|
||||
# Return empty result set
|
||||
return "SELECT NULL AS parent, NULL AS child, 0 AS allow, NULL AS reason, NULL AS source_plugin WHERE 0", {}
|
||||
return (
|
||||
"SELECT NULL AS parent, NULL AS child, 0 AS allow, NULL AS reason, NULL AS source_plugin WHERE 0",
|
||||
{},
|
||||
)
|
||||
|
||||
rules_union = " UNION ALL ".join(rule_sqls)
|
||||
return rules_union, all_params
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue