Commit graph

145 commits

Author SHA1 Message Date
RecursiveGreen
385dc74605 Move back to standard settings file. 2019-05-21 11:47:16 -04:00
Josh Washburne
beaaa0adbe Move a couple settings to the .env file. 2019-05-20 15:56:44 -04:00
Josh Washburne
5bb6be7a1d Request bounds check and standard HTTP responses. 2019-05-20 15:56:19 -04:00
Josh Washburne
3991a4c069 Made import old radio output clearer. 2019-01-16 10:16:33 -05:00
Josh Washburne
5f7541d6b5 Updated importing old radio data for clarity. 2019-01-16 10:15:45 -05:00
Josh Washburne
1a95c323d4 Use Argon2 password hashing. 2019-01-16 10:11:41 -05:00
Josh Washburne
b93b8751ec Implemented rating variance for song requests. 2019-01-15 15:29:14 -05:00
Josh Washburne
bf88b8cfdc Add check to song request to make sure song exists. 2018-09-24 13:28:36 -04:00
Josh Washburne
bb493548cb If a song request is queued, it's technically played. 2018-09-24 13:03:42 -04:00
Josh Washburne
7a59b5778c Refactoring duplicate code. 2018-09-24 13:02:52 -04:00
Josh Washburne
3d4dbaacb0 Filter API results based on authorization. 2018-04-26 12:18:08 -04:00
Josh Washburne
586391f19d Add custom pagination to return total number of pages. 2018-04-19 12:08:29 -04:00
Josh Washburne
9a9cf4c6ef API module doesn't need models. 2018-04-19 12:08:08 -04:00
Josh Washburne
930f300bdb Remove redundant line. 2018-04-10 08:55:36 -04:00
Josh Washburne
80b3eb2031 Refactor rating functionality and move favoriting to Song API. 2018-04-09 15:04:39 -04:00
Josh Washburne
139ac8d892 Add song ratings functionality to API. 2018-04-09 12:11:15 -04:00
Josh Washburne
c186d2e997 Add average rating for Song model. 2018-04-09 12:10:26 -04:00
Josh Washburne
30ea69ac93 New permission to exclude DJ. 2018-04-09 12:08:23 -04:00
Josh Washburne
d3f13e470f Added favorites API functionality. 2018-04-06 12:24:13 -04:00
Josh Washburne
89d2616c65 Rename function to make endpoint flow nicer. 2018-04-06 12:23:23 -04:00
Josh Washburne
6ce5b7ca65 Whitespace cleanup. 2018-04-06 12:21:50 -04:00
Josh Washburne
c32c3ed214 Logic error in checking for DJ user. 2018-04-06 12:19:51 -04:00
Josh Washburne
068e9e05a8 Add Song Request History functionality to the API. 2018-04-05 16:23:01 -04:00
Josh Washburne
a94b75a663 Rearrange Song Serializers to clean up code. 2018-04-05 16:22:15 -04:00
Josh Washburne
62a4b8db40 Adding Profile API functionality. 2018-04-05 10:59:30 -04:00
Josh Washburne
81c948783b Retrieve Album and Game information from Song serializer. 2018-04-05 10:58:27 -04:00
Josh Washburne
253ee3ddd2 SongCreateSerializer no longer needed. 2018-04-04 11:04:50 -04:00
Josh Washburne
6dd4fa72ec Add/Remove artists for song objects in the API. Code cleanup. 2018-04-03 16:24:54 -04:00
Josh Washburne
5bcf6c72d9 Don't include the DJ for create/modify permissions. 2018-04-03 16:23:48 -04:00
Josh Washburne
1d6a2662c3 Deal with optional trailing slashes. 2018-04-03 16:23:17 -04:00
Josh Washburne
d785fae875 Remove temporary debuging code. 2018-04-03 09:30:30 -04:00
Josh Washburne
aaad64dc39 Different serializers for different actions. 2018-04-02 16:54:53 -04:00
Josh Washburne
ddbcf5c96f Removed unnecessary import. 2018-04-02 16:51:48 -04:00
Josh Washburne
f24d1dacbc Allow no artists to be attached at song creation in API. 2018-04-02 16:51:24 -04:00
Josh Washburne
22f3aeb693 Add making song requests from the API. 2018-03-30 17:22:18 -04:00
Josh Washburne
de74f17fb0 is_requestable wasn't checking already queued songs in SongRequest. 2018-03-30 17:21:40 -04:00
Josh Washburne
b342fbb116 Make date output less verbose. 2018-03-30 13:07:58 -04:00
Josh Washburne
f6e0365e6b RadioProfile now has song request functionality. 2018-03-30 12:53:41 -04:00
Josh Washburne
b599aa5d1e Only pass queued_at to be updated. 2018-03-30 12:52:19 -04:00
Josh Washburne
733163f7ba Requestability forgot to check that it was enabled and published. 2018-03-30 12:46:21 -04:00
Josh Washburne
12bce62773 Fix check for next request date in case last_played is NULL. 2018-03-30 12:35:02 -04:00
Josh Washburne
09ecf2a0ca Implement song/jingle boolean checks. 2018-03-30 11:06:45 -04:00
RecursiveGreen
aa90232897 Add ability to get song requests and inform when song is played. 2018-03-29 22:59:51 -04:00
RecursiveGreen
339a74a453 Fix disable signal by checking for empty 'update_fields'. 2018-03-29 22:58:59 -04:00
RecursiveGreen
7d4446c5b2 Add history funtions for song requests. 2018-03-29 22:58:06 -04:00
Josh Washburne
311f744d62 Enabling/Disabling will now affect other objects. 2018-03-29 16:22:15 -04:00
Josh Washburne
3b55456a78 Add RadioManager to remaining Radio models. 2018-03-29 12:14:24 -04:00
Josh Washburne
b927bd5bc0 Move common behaviors and querysets to Core. 2018-03-29 12:13:38 -04:00
RecursiveGreen
3b62bc7b03 Enable token authentication. 2018-03-28 21:12:28 -04:00
Josh Washburne
862bf63d6e Add custom permissions and apply them to radio API views. 2018-03-28 16:56:53 -04:00
Josh Washburne
abe64f3a7d Add rudimentary API functionality. 2018-03-28 16:12:55 -04:00
Josh Washburne
0fb7f148bb Add functions to grab random songs/jingles. 2018-03-28 14:43:03 -04:00
Josh Washburne
4138015054 Add requestable functionality. Code cleanup. 2018-03-28 12:42:28 -04:00
Josh Washburne
def413a74f Code cleanup. 2018-03-28 12:41:11 -04:00
Josh Washburne
850b3a5211 Functions in utils.py relocated. File no longer necessary. 2018-03-28 12:40:17 -04:00
Josh Washburne
f8c49e18e5 When a song request is fulfilled, update song data. 2018-03-27 15:59:53 -04:00
Josh Washburne
f9d24de34c Code cleanup. 2018-03-27 15:58:26 -04:00
Josh Washburne
4a688bade0 Function renaming and move into Song manager. 2018-03-27 12:05:44 -04:00
Josh Washburne
17a85b2197 Add calculating waittimes for playing/requesting songs. 2018-03-26 15:35:31 -04:00
Josh Washburne
2704afaba3 Add pretty time display function. 2018-03-26 15:28:38 -04:00
Josh Washburne
d8ed766696 PEP8 cleanup. 2018-01-19 12:19:59 -05:00
Josh Washburne
f4ee7c5bd1 Create DJ profile manually as signals won't work in migration. 2018-01-19 12:19:45 -05:00
Josh Washburne
0607d26685 Add Profiles app to the admin page. 2018-01-19 12:19:13 -05:00
Josh Washburne
616b7308cf Change default ordering for SongRequest. 2018-01-19 12:18:50 -05:00
Josh Washburne
cf5cea2e52 Move signal to it's own file. 2018-01-19 11:26:14 -05:00
Josh Washburne
ee9977f9bc Initial Profiles app commit. 2018-01-18 12:45:00 -05:00
Josh Washburne
45b98fe1d7 Add naming/sorting changes. 2018-01-18 12:44:32 -05:00
RecursiveGreen
00dd697aca Removed commented code (doh!) 2018-01-14 21:29:26 -05:00
RecursiveGreen
739b2bddcb Implemented Game/Album changing to Song in admin. 2018-01-14 21:23:26 -05:00
RecursiveGreen
476ddb7a5a Moved Song/Artist changes to generic function. 2018-01-14 18:38:14 -05:00
RecursiveGreen
a7ccb61e07 More DRY code cleanup. 2018-01-14 15:21:04 -05:00
RecursiveGreen
25485b54b9 Clean up Songs/Artists admin actions. 2018-01-13 00:39:13 -05:00
Josh Washburne
65fb7d9f15 Add admin actions for adding/removing multiple artists to songs. 2018-01-12 16:35:25 -05:00
Josh Washburne
d8379fe198 Default ordering models and "full_title" for Song. 2018-01-12 16:34:43 -05:00
Josh Washburne
126c4684d9 Temporarily turn off SQL query logging. 2018-01-12 16:33:37 -05:00
Josh Washburne
53437d6d96 I lied--now I added the docstring. 2018-01-08 09:39:55 -05:00
Josh Washburne
770bf23f15 Added docstring and code cleanup. 2018-01-08 09:39:28 -05:00
Josh Washburne
6b93fc5f6c Code cleanup for Python 3. 2018-01-06 13:11:51 -05:00
Josh Washburne
037dd98b49 Naturalize function now removes punctuation as well. 2018-01-06 12:57:10 -05:00
Josh Washburne
6ca8b848d2 Implement natural sorting. (Yay!) 2018-01-05 15:18:12 -05:00
Josh Washburne
89d859e371 Jumped the gun--don't want a custom field. 2018-01-05 15:01:07 -05:00
Josh Washburne
d349b51923 Add NaturalSortField support. 2018-01-05 10:42:17 -05:00
Josh Washburne
113c93d27b Code cleanup. 2018-01-05 10:41:24 -05:00
Josh Washburne
dae133e5c3 Enable SQL query logging to console for development. 2018-01-04 16:30:31 -05:00
Josh Washburne
e0465acb67 Implement importing old SQLite3 DB via command line. 2018-01-04 16:29:59 -05:00
Josh Washburne
a5a275ef5a Add default Artist ordering. 2018-01-04 16:29:29 -05:00
Josh Washburne
4555de206a Set up Enabled/Published as boolean properties. 2018-01-04 16:28:59 -05:00
Josh Washburne
0d346adee9 Initial commit/enabling of the Radio app. 2017-12-29 09:56:47 -05:00
Josh Washburne
d985efada9 Added more docstrings. 2017-12-29 09:08:19 -05:00
Josh Washburne
29f7834921 PEP8 cleanup. 2017-12-28 14:44:01 -05:00
Josh Washburne
2a5c8e02e0 Set core default settings on initial commit. 2017-12-28 10:43:15 -05:00
Josh Washburne
bf7b5061e9 Automatically create DJ user at initial migration. 2017-12-28 10:10:39 -05:00
Josh Washburne
0b0a0191f2 Enable Core app and authtools. 2017-12-27 16:12:53 -05:00
Josh Washburne
fa0677de95 Initial Core app commit. 2017-12-27 16:11:20 -05:00
Josh Washburne
739820d401 Initial project commit. 2017-12-26 15:11:18 -05:00