]> git.parisson.com Git - teleforma.git/commitdiff
fix list
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 23 Jun 2022 16:55:46 +0000 (18:55 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 23 Jun 2022 16:55:46 +0000 (18:55 +0200)
teleforma/management/commands/teleforma-export-wifi-accounts.py

index 23984144960b7355e676530474adaebfcd4d0626..59498a8c8af2360b91e00186a8087063b7ce145a 100644 (file)
@@ -23,6 +23,7 @@ class Command(BaseCommand):
 
         f = open(path, 'w')
         period = Period.objects.get(name=period_name)
+        s = ''
 
         for user in User.objects.all():
             profile = Profile.objects.filter(user=user)
@@ -38,7 +39,7 @@ class Command(BaseCommand):
                     data.append(p.wifi_login)
                     data.append(p.wifi_pass)
                     data.append('\n')
-                    s = ','.join(data)
+                    s += ','.join(data)
         f.write(s)
         f.close()