Fixing range of move_songs function

This commit is contained in:
Rafael Vargas 2022-01-01 13:13:05 -04:00
parent 0ab2a5a830
commit 4ca9d581c8

View File

@ -143,7 +143,7 @@ class Playlist(IPlaylist):
Positions: First music is 1 Positions: First music is 1
Return (Error bool, string) with the status of the function, to show to user Return (Error bool, string) with the status of the function, to show to user
""" """
if pos2 not in range(1, len(self.__queue)) or pos1 not in range(1, len(self.__queue)): if pos2 not in range(1, len(self.__queue) + 1) or pos1 not in range(1, len(self.__queue) + 1):
return (False, 'Numbers need to be more than 0 and less than the queue length') return (False, 'Numbers need to be more than 0 and less than the queue length')
try: try: