From: Guillaume Pellerin Date: Mon, 4 Jul 2022 16:37:43 +0000 (+0200) Subject: fix wifi account export X-Git-Tag: 2.7.1~18 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=194d83db3c02063e5790be8b0f3e5928721e11e9;p=teleforma.git fix wifi account export --- diff --git a/bin b/bin index 7a7c9ab6..52d01bc8 160000 --- a/bin +++ b/bin @@ -1 +1 @@ -Subproject commit 7a7c9ab66099c6e93acacf48d589bfc9da5a9fc2 +Subproject commit 52d01bc8d0ec34d96ae3751fa5709a8ae05066fd diff --git a/teleforma/management/commands/teleforma-export-wifi-accounts.py b/teleforma/management/commands/teleforma-export-wifi-accounts.py index 59498a8c..d4734601 100644 --- a/teleforma/management/commands/teleforma-export-wifi-accounts.py +++ b/teleforma/management/commands/teleforma-export-wifi-accounts.py @@ -31,8 +31,10 @@ class Command(BaseCommand): if profile and students: p = profile[0] student = students[0] - if student.is_subscribed and user.is_active and \ - student.period == period and student.platform_only: + if student.is_subscribed and \ + user.is_active and \ + student.period == period and \ + not student.platform_only: data = [] data.append(user.first_name) data.append(user.last_name)