We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bf40cc0 + 324a132 commit 73b8dadCopy full SHA for 73b8dad
src/api/main.py
@@ -11,6 +11,6 @@
11
async def generate_name(starts_with: str = None):
12
name_choices = names
13
if starts_with:
14
- name_choices = [name for name in names if name.lower().startswith(starts_with.lower())]
+ name_choices = [name for name in name_choices if name.lower().startswith(starts_with.lower())]
15
random_name = random.choice(name_choices)
16
return {"name": random_name}
0 commit comments