Skip to content

Commit

Permalink
fix: Make searchtag.get_or_create return id instead of list
Browse files Browse the repository at this point in the history
Affects suggested tag actions only.
  • Loading branch information
charmander committed Dec 5, 2024
1 parent 604c689 commit 08a2f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weasyl/searchtag.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def _get_or_create(*names: str) -> list[int]:


def get_or_create(name):
return _get_or_create(d.get_search_tag(name))
return _get_or_create(d.get_search_tag(name))[0]


def get_or_create_many(normalized_names: Iterable[str]) -> list[int]:
Expand Down

0 comments on commit 08a2f32

Please sign in to comment.