Skip to content

Commit

Permalink
Final type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMStraub committed Dec 11, 2024
1 parent ead2eec commit 3976128
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions gramps_webapi/api/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ def update_usage_media(
tree = get_tree_from_jwt_or_fail()
if not user_id:
user_id = get_jwt_identity()
assert user_id is not None, "Unexpected error while looking up user ID."
db_handle = get_db_outside_request(
tree=tree, view_private=True, readonly=True, user_id=user_id
)
Expand Down
2 changes: 2 additions & 0 deletions gramps_webapi/api/resources/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

"""Full-text search endpoint."""

from __future__ import annotations

import re
from typing import Dict, Optional

Expand Down
1 change: 1 addition & 0 deletions gramps_webapi/api/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,7 @@ def update_usage_people(tree: str | None = None, user_id: str | None = None) ->
tree = get_tree_from_jwt_or_fail()
if not user_id:
user_id = get_jwt_identity()
assert user_id is not None, "Unexpected error while looking up user ID."
db_handle = get_db_outside_request(
tree=tree,
view_private=True,
Expand Down

0 comments on commit 3976128

Please sign in to comment.