diff options
| author | Tristan Williams <tgwil@tgwil.net> | 2025-03-30 14:30:10 -0400 |
|---|---|---|
| committer | Tristan Williams <tgwil@tgwil.net> | 2025-03-30 14:30:10 -0400 |
| commit | bc003a5699cc7f745463cd564658190ac101bf5d (patch) | |
| tree | 2af81a492ea40e5a53e190cb3ab51620b0ef5df8 | |
| parent | Refactor for future work (diff) | |
| download | sortashuffle-bc003a5699cc7f745463cd564658190ac101bf5d.tar.gz sortashuffle-bc003a5699cc7f745463cd564658190ac101bf5d.tar.bz2 sortashuffle-bc003a5699cc7f745463cd564658190ac101bf5d.zip | |
Did I mention I need to start testing BEFORE commit?
| -rw-r--r-- | sortashuffle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sortashuffle.py b/sortashuffle.py index 31c57ef..806f2a4 100644 --- a/sortashuffle.py +++ b/sortashuffle.py | |||
| @@ -40,7 +40,7 @@ def shuffle(showlist, weightlist): | |||
| 40 | """Shuffle the playlist.""" | 40 | """Shuffle the playlist.""" |
| 41 | shuffled = [] | 41 | shuffled = [] |
| 42 | while any(showlist): | 42 | while any(showlist): |
| 43 | selection = select_show(showlist, weightlist, previous) | 43 | selection = select_show(showlist, weightlist) |
| 44 | shuffled.append(SOURCES[selection] + "//" + showlist[selection].pop(0)) | 44 | shuffled.append(SOURCES[selection] + "//" + showlist[selection].pop(0)) |
| 45 | weightlist[selection] = len(showlist[selection]) | 45 | weightlist[selection] = len(showlist[selection]) |
| 46 | return shuffled | 46 | return shuffled |