Commit 64664cb0 authored by fred's avatar fred

include date/time when track was added to nonstop to csv exports

parent 93d12729
......@@ -44,7 +44,9 @@ class SomaDayArchiveCsvView(SomaDayArchiveView):'utf-8', 'replace'),
line.filepath.track.instru and 'instru' or '',
line.filepath.track.cfwb and 'cfwb' or ''])
line.filepath.track.cfwb and 'cfwb' or '',
line.filepath.added_to_nonstop_timestamp.strftime('%Y-%m-%d %H:%M') if line.filepath.added_to_nonstop_timestamp else '',
writer.writerow([line.play_timestamp.strftime('%Y-%m-%d %H:%M'),
line.filepath.short.encode('utf-8', 'replace')])
......@@ -297,7 +299,7 @@ class SearchCsvView(SearchView):
def get(self, request, *args, **kwargs):
out = StringIO()
writer = csv.writer(out)
writer.writerow(['Title', 'Artist', 'Zones', 'Language', 'Instru', 'CFWB'])
writer.writerow(['Title', 'Artist', 'Zones', 'Language', 'Instru', 'CFWB', 'Ajout'])
for track in self.get_queryset():
track.title.encode('utf-8', 'replace') if track.title else 'Inconnu',
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment