Skip to content

Commit

Permalink
Merge pull request #19 from alexclusive/main
Browse files Browse the repository at this point in the history
fix index out of range when formatting response
  • Loading branch information
jackmoore7 authored Jul 9, 2024
2 parents 1e8462f + bd369c7 commit 872adbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 2 additions & 3 deletions imports/slash_commands/cmd_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ def format_train_solution(solutions):
if len(solutions) <= 1:
return solutions # nothing needed
response = str(solutions[0])
while len(solutions) > 0:
solutions = solutions[1:]
response += "\n" + str(solutions[0])
for solution in solutions:
response += "\n" + str(solution)
return response
5 changes: 0 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@

os.environ["GOOGLE_APPLICATION_CREDENTIALS"]=os.getenv('GOOGLE_KEY')






@discord_client.event
async def on_ready():
await bg_tasks.tasks_on_ready()
Expand Down

0 comments on commit 872adbc

Please sign in to comment.