chore: format

This commit is contained in:
Timothy Jaeryang Baek
2026-02-13 15:00:39 -06:00
parent 79ecbfc757
commit 626d236d13
10 changed files with 81 additions and 35 deletions

View File

@@ -358,7 +358,10 @@ async def update_note_access_by_id(
form_data.access_grants = [
grant
for grant in form_data.access_grants
if not (grant.get("principal_type") == "user" and grant.get("principal_id") == "*")
if not (
grant.get("principal_type") == "user"
and grant.get("principal_id") == "*"
)
]
AccessGrants.set_access_grants("note", id, form_data.access_grants, db=db)