Skip to content

Commit

Permalink
consitent lowercase of username
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiftyos committed Dec 20, 2024
1 parent 04a3a6c commit 959757e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions autogpt_platform/backend/backend/server/v2/store/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ async def get_agent(
It returns the store listing agents details.
"""
try:
username = urllib.parse.unquote(username)
username = urllib.parse.unquote(username).lower()
# URL decode the agent name since it comes from the URL path
agent_name = urllib.parse.unquote(agent_name)
agent = await backend.server.v2.store.db.get_store_agent_details(
Expand Down Expand Up @@ -189,7 +189,7 @@ async def create_review(
The created review
"""
try:
username = urllib.parse.unquote(username)
username = urllib.parse.unquote(username).lower()
agent_name = urllib.parse.unquote(agent_name)
# Create the review
created_review = await backend.server.v2.store.db.create_store_review(
Expand Down Expand Up @@ -261,7 +261,7 @@ async def get_creator(username: str) -> backend.server.v2.store.model.CreatorDet
- Creator Details Page
"""
try:
username = urllib.parse.unquote(username)
username = urllib.parse.unquote(username).lower()
creator = await backend.server.v2.store.db.get_store_creator_details(
username=username.lower()
)
Expand Down

0 comments on commit 959757e

Please sign in to comment.