Kevin Mok
c4277ab0b4
Setup history log on nzxt-arch
6 years ago
Kevin Mok
d15717490d
Export ISO timestamp for history ( #57 )
6 years ago
Kevin Mok
fa2c5f7008
Export listening history to csv ( #57 )
Still need to convert timestamps to more CPU-readable format and figure
out what to do about reading headers for importing.
6 years ago
Kevin Mok
4b19c932b0
Split Track column into name and artists
6 years ago
Kevin Mok
2912977992
Setup django_tables2 for user history table
6 years ago
Kevin Mok
a399960a49
Only get history after latest stored one
6 years ago
Kevin Mok
d06e5912cc
Create History relation and add entries
Logs User, time and Track.
6 years ago
Kevin Mok
2644a3aeb2
Parse listening history and add Track objects
6 years ago
Chris Shyi
54c541426c
Genre Artist Breakdown
Implemented the generation of genre artist breakdown data for the genre
graphs. More test cases needed.
7 years ago
Kevin Mok
c949ecd3cc
Setup API app, can scan library ( #47 )
Manually merged console logging from loading-page branch.
7 years ago
Kevin Mok
e50d3d8476
Login app working ( #47 )
Can login and create User object. Also now store user token info in db
(closes #48 ).
7 years ago
Kevin Mok
8b1344d453
Split spotifyvis code into different apps ( #47 )
Server is able to start, but none of the apps are linked together yet.
7 years ago
Kevin Mok
22ea472889
Store user's total songs
Also fixed "lag" to access admin charts page.
7 years ago
Kevin Mok
5756642521
Added complete console logging for parsing library
Specifically, when making API calls for genres/features and updating
genres for tracks in db.
7 years ago
Kevin Mok
4e1a6df89e
Store genres in artists as m2m field ( #34 )
7 years ago
Kevin Mok
de93bd7b0a
Store counts for genres in Genre model
Have not assigned most common genre to Track models yet (currently
blank).
7 years ago
Chris Shyi
be815086c0
Use secrets.py to generate user secret
Instead of using our own random string generator function, the user
secret is now being generated using secrets.token_urlsafe(). The max
length of the user secret has been increased to accommodate the size of
the 32 byte string.
7 years ago
Chris Shyi
c518556126
Draw audio feature bar charts
Started work on drawing the bar charts for audio features.
7 years ago
Kevin Mok
9875cbeb68
Moved script to create genre graph to static file
- sorted artists in bar by most to least, bottom to top
- wrap x-axis labels by bar width
- increased track name length (program crashed on a track name)
7 years ago
Chris Shyi
3e35e52f45
Retrieve audio feature data from frontend
Added user_secret field to User. Set up a basic JavaScript function for
querying audio feature data from the frontend.
7 years ago
Kevin Mok
ea5990d048
Fixed duplicate key error in save_track_obj
Can't create Track object without the artists/user so get_or_create
doesn't work properly.
7 years ago
Chris Shyi
92d5d174e8
Modify maximum field length
Artist.genre and Track.name had maximum lengths that were not long enough, now increased.
7 years ago
Chris Shyi
90dbda4336
Removed UserAudioSummary class
7 years ago
Chris Shyi
797115e9cb
Clean up utils.py to use database
Uses of the original library_stats dictionary in utils.py were either removed or commented out, replaced by the saving of models into the database.
7 years ago
Kevin Mok
62cc6c8ccd
Setup AudioFeatures table
7 years ago
Kevin Mok
cdcc33c014
Setup Track table, modified models to data
Recreated migrations from scratch to fix bug with initializing Track
objects.
7 years ago
Chris Shyi
27718743d7
Change artists field in Track
artists is now a ManyToManyField in Track, which is cleaner than
using a unique_together clause in the Meta class.
7 years ago
Chris Shyi
b735887899
Bug fixes
Server crashes as of the last commit, now fixed.
7 years ago
Chris Shyi
248e9b0ab6
Change database settings
Edited settings.py to use PostgreSQL. Made some minor changes
in views.py to incorporate the new models.
7 years ago
Kevin Mok
e07fd0965a
Added Vim folds to models.py and utils.py
7 years ago
Kevin Mok
53b7bb5d41
Started on (flawed) database models
7 years ago
Chris
1f63c2d2e7
Initial commit
Sets up basic Django app directory structure.
7 years ago