emmental/db
Anna Schumaker ab6eb556ad db: Fix track_adjusts_current() when the track has been removed
In this case, the call to get_track_index() returns None which can't be
used for the comparisons we're doing. Make sure we handle the None
result explicitely.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2022-02-22 10:08:34 -05:00
..
__init__.py db: Attach release information to albums 2021-11-18 10:20:24 -05:00
album.py db: Remove indexes 2021-12-09 22:05:42 -05:00
artist.py db: Remove indexes 2021-12-09 22:05:42 -05:00
decade.py db: Give playlists a delete() function 2021-10-16 17:37:23 -04:00
disc.py db: Give Discs a "number" property 2021-11-18 10:20:24 -05:00
genre.py db: Remove indexes 2021-12-09 22:05:42 -05:00
library.py db: Give playlists a refresh() function 2021-10-27 11:25:05 -04:00
playlist.py db: Fix track_adjusts_current() when the track has been removed 2022-02-22 10:08:34 -05:00
sql.py db: Occasionally optimize the database 2021-12-09 22:09:40 -05:00
state.py db: Replace years.year with albums.release in the default sort order 2021-11-18 10:20:24 -05:00
table.py db: Convert the UserTable to a playlist.Model 2021-10-15 16:09:58 -04:00
test_album.py db: Preserve the current track when removing tracks 2021-11-18 10:20:24 -05:00
test_artist.py db: Preserve the current track when removing tracks 2021-11-18 10:20:24 -05:00
test_db.py db: Create a function to find playlists based on state id 2021-11-18 10:20:24 -05:00
test_decade.py db: Preserve the current track when removing tracks 2021-11-18 10:20:24 -05:00
test_disc.py db: Preserve the current track when removing tracks 2021-11-18 10:20:24 -05:00
test_genre.py db: Preserve the current track when removing tracks 2021-11-18 10:20:24 -05:00
test_library.py db: Preserve the current track when removing tracks 2021-11-18 10:20:24 -05:00
test_playlist.py db: Fix random next_track() on playlists with only one track 2021-12-09 17:51:02 -05:00
test_sql.py db: Move SQLite Connection stuff into a new file 2021-10-07 13:58:09 -04:00
test_state.py db: Replace years.year with albums.release in the default sort order 2021-11-18 10:20:24 -05:00
test_table.py db: Create a new Child class 2021-10-11 11:58:43 -04:00
test_track.py db: Attach release information to albums 2021-11-18 10:20:24 -05:00
test_user.py db: Make it easy to know if we can delete tracks from playlists 2021-12-05 13:49:22 -05:00
test_year.py db: Preserve the current track when removing tracks 2021-11-18 10:20:24 -05:00
track.py db: Remove indexes 2021-12-09 22:05:42 -05:00
user.py db: Use the new match / case statement in user.py:do_factory() 2021-12-28 17:23:57 -05:00
year.py db: Give playlists a delete() function 2021-10-16 17:37:23 -04:00