Commit 7d18c20c authored by fred's avatar fred

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

parent 64664cb0
......@@ -45,7 +45,7 @@ class SomaDayArchiveCsvView(SomaDayArchiveView):
line.filepath.track.language,
line.filepath.track.instru and 'instru' 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 '',
line.filepath.track.added_to_nonstop_timestamp.strftime('%Y-%m-%d %H:%M') if line.filepath.added_to_nonstop_timestamp else '',
])
else:
writer.writerow([line.play_timestamp.strftime('%Y-%m-%d %H:%M'),
......@@ -307,7 +307,9 @@ class SearchCsvView(SearchView):
' + '.join([x.title.encode('utf-8') for x in track.nonstop_zones.all()]),
track.language or '',
track.instru and 'instru' or '',
track.cfwb and 'cfwb' or ''])
track.cfwb and 'cfwb' or '',
track.added_to_nonstop_timestamp.strftime('%Y-%m-%d %H:%M') if track.added_to_nonstop_timestamp else '',
])
return HttpResponse(out.getvalue(), content_type='text/csv; charset=utf-8')
......
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