Added admin command to scan personal history (#58)

Reverted exported history file to exclude timestamp. Simplified logging
for scanning user history.
This commit is contained in:
2018-11-17 19:37:51 -05:00
parent 895cf7d40d
commit 4ddf11aa41
6 changed files with 24 additions and 60 deletions

View File

@@ -71,8 +71,9 @@ class HistoryList(ExportMixin, SingleTableView):
def get_export_filename(self, export_format):
user_id = self.request.session['user_id']
timestamp = strftime("%m%d%Y-%H%M")
return "{}.{}".format("-".join((user_id, timestamp)), export_format)
# timestamp = strftime("%m%d%Y-%H%M")
# return "{}.{}".format("-".join((user_id, timestamp)), export_format)
return "{}.{}".format(user_id, export_format)
def create_export(self, export_format):
export_exclude = ('id', 'user', 'track', 'track_name', 'artists',