From 194d83db3c02063e5790be8b0f3e5928721e11e9 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 4 Jul 2022 18:37:43 +0200 Subject: [PATCH] fix wifi account export --- bin | 2 +- .../management/commands/teleforma-export-wifi-accounts.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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) -- 2.39.5