Skip to content

Commit

Permalink
[Index] Fix menu index issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Twentysix26 committed Oct 8, 2020
1 parent 2407308 commit d764867
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async def index_browse(self, ctx: commands.Context, repo_name=""):

async def nextp(*args, **kwargs):
nonlocal selected
if selected == len(cache):
if selected == (len(cache) - 1):
selected = 0
else:
selected += 1
Expand Down Expand Up @@ -286,7 +286,7 @@ async def show_cogs(

async def nextp(*args, **kwargs):
nonlocal selected
if selected == len(cogs):
if selected == (len(cogs) - 1):
selected = 0
else:
selected += 1
Expand Down

0 comments on commit d764867

Please sign in to comment.