Skip to content

Commit

Permalink
fix: Remove typo in get_messages function
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius-P1 committed Jun 23, 2024
1 parent e1e070c commit 215a356
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bonus/api-ai/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def get_inventory(token: str):
@app.get("/info/level")
def get_level(token: str):
for ai, aiToken in aiList:
if str(aiTokeservern) == token:
if str(aiToken) == token:
return {"level": ai.getLevel()}
raise HTTPException(status_code=404, detail="AI not found")

Expand All @@ -307,7 +307,7 @@ def get_teamname(token: str):


@app.get("/info/messages")
def get_messages(tokeservern: str):
def get_messages(token: str):
for ai, aiToken in aiList:
if str(aiToken) == token:
return {"messages": ai.getMessagesReceived()}
Expand Down

0 comments on commit 215a356

Please sign in to comment.