line.filepath.track.artist.name.encode('utf-8', 'replace'),
line.filepath.track.language,
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 '',
+ ])
else:
writer.writerow([line.play_timestamp.strftime('%Y-%m-%d %H:%M'),
line.filepath.short.encode('utf-8', 'replace')])
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():
writer.writerow([
track.title.encode('utf-8', 'replace') if track.title else 'Inconnu',