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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user