Skip to content

Commit 73b8dad

Browse files
authored
Merge pull request #60 from pamelafox/namechoice
Fix variable used
2 parents bf40cc0 + 324a132 commit 73b8dad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
async def generate_name(starts_with: str = None):
1212
name_choices = names
1313
if starts_with:
14-
name_choices = [name for name in names if name.lower().startswith(starts_with.lower())]
14+
name_choices = [name for name in name_choices if name.lower().startswith(starts_with.lower())]
1515
random_name = random.choice(name_choices)
1616
return {"name": random_name}

0 commit comments

Comments
 (0)