added empty stats to playlist generation for ios app

This commit is contained in:
aj 2020-03-08 10:51:21 +00:00
parent 1fd93528be
commit a3f0578d46
2 changed files with 12 additions and 1 deletions

View File

@ -11,6 +11,7 @@
# from your .gitignore file, remove the corresponding line
# below:
.git
.idea
.gitignore
.vscode
service.json

View File

@ -119,7 +119,17 @@ def playlist(username=None):
'uri': None,
'shuffle': playlist_shuffle if playlist_shuffle is not None else False,
'type': playlist_type if playlist_type is not None else 'default',
'last_updated': datetime.utcnow()
'last_updated': datetime.utcnow(),
'lastfm_stat_count': 0,
'lastfm_stat_album_count': 0,
'lastfm_stat_artist_count': 0,
'lastfm_stat_percent': 0,
'lastfm_stat_album_percent': 0,
'lastfm_stat_artist_percent': 0,
'lastfm_stat_last_refresh': datetime.utcnow(),
}
if user_ref.get().to_dict()['spotify_linked']: