Skip to content

Commit

Permalink
♻️ use fetch_with_name for start nation name check
Browse files Browse the repository at this point in the history
  • Loading branch information
YousefEZ committed Sep 27, 2024
1 parent 2a5b29f commit 02b3edf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host/nation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def start(identifier: base_types.UserId, name: str, session: Session) -> StartRe
if user_exists(identifier, session):
return StartResponses.ALREADY_EXISTS

if Nation.search_for_nations(name, session):
if Nation.fetch_from_name(name, session) is not None:
return StartResponses.NAME_TAKEN
metadata = models.MetadataModel(
user_id=identifier,
Expand Down

0 comments on commit 02b3edf

Please sign in to comment.