]> git.parisson.com Git - telemeta.git/commitdiff
fix new tags in csv export
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 13 Jan 2015 00:13:05 +0000 (01:13 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 13 Jan 2015 00:13:05 +0000 (01:13 +0100)
telemeta/views/playlist.py

index ade8fc23c1a66f91a7948827e8ba20407e26677c..a178255235d5c96807ea47803b0cfc16ecda2319 100644 (file)
@@ -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')