From d894d4f3129c29375bacca174f942a154c8fb26e Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 13 Jan 2015 01:13:05 +0100 Subject: [PATCH] fix new tags in csv export --- telemeta/views/playlist.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/telemeta/views/playlist.py b/telemeta/views/playlist.py index ade8fc23..a1782552 100644 --- a/telemeta/views/playlist.py +++ b/telemeta/views/playlist.py @@ -111,8 +111,12 @@ class PlaylistView(object): elements.append(collection) if elements: - element = elements[0].to_dict_with_more() + element = elements_base[0].to_dict_with_more() tags = element.keys() + for e in elements: + for key in e.keys(): + if not key in tags: + tags.append(key) # code and title on the two first column tags.remove('code') tags.remove('title') -- 2.39.5