From fa32040616d9565ae104d0f062392ef4afefb486 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 23 Jun 2022 18:55:46 +0200 Subject: [PATCH] fix list --- .../management/commands/teleforma-export-wifi-accounts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- 2.39.5