From: Guillaume Pellerin Date: Thu, 23 Jun 2022 16:55:46 +0000 (+0200) Subject: fix list X-Git-Tag: 2.7.1~37 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=fa32040616d9565ae104d0f062392ef4afefb486;p=teleforma.git fix list --- diff --git a/teleforma/management/commands/teleforma-export-wifi-accounts.py b/teleforma/management/commands/teleforma-export-wifi-accounts.py index 23984144..59498a8c 100644 --- a/teleforma/management/commands/teleforma-export-wifi-accounts.py +++ b/teleforma/management/commands/teleforma-export-wifi-accounts.py @@ -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()