Skip to content

Commit 324a132

Browse files
committed
Fix variable used
1 parent bf40cc0 commit 324a132

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)