Keith Edmunds
223fb3bdec
WIP V3: tests for moving rows between playlists pass
2023-11-22 16:57:16 +00:00
Keith Edmunds
262ab202fc
WIP V3: catch proposed duplicate playlist name
...
Fixes #197
2023-11-19 11:13:49 +00:00
Keith Edmunds
8f2ab98be0
Fix create playlist from template and tab handlding
...
Tab restore code rewritten.
2023-11-18 14:29:52 +00:00
Keith Edmunds
199f0e27fa
WIP V3: fixup row insertion/deletion
...
All row insertions and deletions are now wrapped in beginRemoveRows /
endRemoveRows (and similar for insertions).
2023-11-17 22:17:47 +00:00
Keith Edmunds
2861511f1f
WIP V3: remove functions, formatting
2023-11-16 00:08:12 +00:00
Keith Edmunds
71f3e4cda8
WIP V3: delete rows works
2023-11-15 23:40:48 +00:00
Keith Edmunds
9554336860
Move SQLAlchemy statements to models.py
2023-10-31 13:04:21 +00:00
Keith Edmunds
813b325029
Black reformatting, tidying
2023-10-31 08:15:24 +00:00
Keith Edmunds
37cdaf3e3f
Call scalars() from session rather than row results
2023-10-27 06:41:40 +01:00
Keith Edmunds
86a1678f41
WIP V3: move row initial tests working
...
More tests to write
2023-10-24 20:48:28 +01:00
Keith Edmunds
da658f0ae3
V3 WIP testing working for test_models
2023-10-23 17:39:56 +01:00
Keith Edmunds
95c7ccbf34
WIP V3: editing saves
2023-10-21 13:49:13 +01:00
Keith Edmunds
bb14b34c2e
WIP V3: column widths set/save works
2023-10-20 11:30:54 +01:00
Keith Edmunds
dbbced7401
Fix repr() for Settings
2023-10-20 11:06:50 +01:00
Keith Edmunds
f35b8b93b1
Fix up cron database check
2023-10-16 20:39:53 +01:00
Keith Edmunds
3e2293195a
Improve track creation in database
...
Pass all arguments to Tracks.__init__ on track creation
Smarten up metadata collecting
Reformat code
Reinstate stackprinter, but with more sensible settings (mostly
defaults, oddly enough)
2023-10-16 19:44:51 +01:00
Keith Edmunds
3513c32a62
Speed increases, more typing, cleanup
...
Pull all playlist row info in one database query when loading a
playlist.
Fixup some type hints in models.
Comment out stackprinter calls - they mostly get in the way
interactively.
2023-10-15 19:04:58 +01:00
Keith Edmunds
ae87ac82ba
Migrate model to SQLAlchemy 2.0 DeclarativeBase
2023-10-15 09:51:02 +01:00
Keith Edmunds
a8c5a56c1a
Implent subtotal times and unplayed time
2023-10-13 19:01:22 +01:00
Keith Edmunds
c8a7ae7f73
Black formatting
2023-10-12 08:55:26 +01:00
Keith Edmunds
87ab973439
Implement playlist range sort and unsort
2023-10-12 02:43:17 +01:00
Keith Edmunds
b3905e062d
Improve artist search
...
Replicate recent changes in title search to artist search
2023-10-06 10:58:15 +01:00
Keith Edmunds
f3a5ed2e72
Track selection dialog bugfix
...
If multiple tracks had the name name, only one would be listed.
2023-10-05 13:49:52 +01:00
Keith Edmunds
bb700d26f1
Faster track selection diaglog
...
Use better query to load last_played times along with tracks
2023-10-04 08:11:41 +01:00
Keith Edmunds
b2f826dfcc
Much improved performance adding tracks
2023-10-01 15:17:27 +01:00
Keith Edmunds
986257bef6
Flake8 and Black run on all files
2023-07-09 16:12:21 +01:00
Keith Edmunds
c5c5c28583
Change PlaylistRows.row_number to plr_rownnum
2023-04-02 17:23:49 +01:00
Keith Edmunds
f9f1e5f237
Change PlaylistRows.row_number to row_no
2023-04-01 19:59:25 +01:00
Keith Edmunds
16a9880583
Improve track search performance
...
Searching for a track was wrapping the search string in % signs
(wildcards). The leading % meant the database didn't use the index.
Dropped leading % (user can add it manually if needed).
2023-04-01 19:45:07 +01:00
Keith Edmunds
80e698680b
Clean up header and note updates
...
• rationalise number of functions
• make colour handling cleaner
• optimise when playlist is saved
2023-03-12 09:53:11 +00:00
Keith Edmunds
39ec7f470b
Fixup section duration times
2023-03-11 16:05:10 +00:00
Keith Edmunds
530ee60015
WIP: playlists.py refactoring
2023-03-04 23:02:21 +00:00
Keith Edmunds
aa3388f732
WIP: playlist refactor: section timings
2023-02-28 20:46:22 +00:00
Keith Edmunds
0794f061ee
WIP: playlists.py refactor
2023-02-19 20:09:00 +00:00
Keith Edmunds
8476dd4ace
Add ability to delete and rename playlists
...
Fixes #54
2023-02-13 19:34:28 +00:00
Keith Edmunds
0c38fc2ef4
Fix all bar one typing errors
2023-02-07 21:58:08 +00:00
Keith Edmunds
4a6d6fa208
Log errors importing tracks
2023-02-05 22:48:32 +00:00
Keith Edmunds
4f3fb6c1ae
No mypy errors; four FIXMEs
2023-02-05 21:04:10 +00:00
Keith Edmunds
5d50ebf3aa
Typing and other cleanups
2023-01-31 21:14:02 +00:00
Keith Edmunds
73bb4b3a7f
WIP: typing
2023-01-30 19:29:33 +00:00
Keith Edmunds
ffa3015ac3
Fix move existing track when adding duplicate with note
...
Fixes #161
2023-01-20 22:00:47 +00:00
Keith Edmunds
f8dcc69a55
Python typing fixups
2023-01-20 21:59:40 +00:00
Keith Edmunds
c04114b07a
Fix some type hints
2023-01-19 23:32:20 +00:00
Keith Edmunds
aa405cd6d9
WIP for resume play
2022-12-28 15:08:54 +00:00
Keith Edmunds
8f8c6a1034
Remove redundant code
2022-12-28 09:33:40 +00:00
Keith Edmunds
ece6723211
Database changes needed for 2.8 and 2.9
2022-12-25 10:29:05 +00:00
Keith Edmunds
683e76f9a0
Update database correctly when tabs are closed
2022-12-24 20:24:27 +00:00
Keith Edmunds
94b2f473e9
Cleanups from running vulture
2022-12-24 09:36:51 +00:00
Keith Edmunds
f2a27366d3
Fix deleting rows from playlist
2022-12-23 21:27:06 +00:00
Keith Edmunds
444c3e4fb4
Remove rows from playlist works and db updates
2022-12-23 20:15:07 +00:00