mirror of
https://github.com/RafaelSolVargas/Vulkan.git
synced 2025-10-29 16:57:23 +00:00
Fixing range of move_songs function
This commit is contained in:
parent
0ab2a5a830
commit
4ca9d581c8
@ -143,7 +143,7 @@ class Playlist(IPlaylist):
|
||||
Positions: First music is 1
|
||||
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')
|
||||
|
||||
try:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user