]> git.parisson.com Git - teleforma.git/commitdiff
fix wifi account export
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 4 Jul 2022 16:37:43 +0000 (18:37 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 4 Jul 2022 16:37:43 +0000 (18:37 +0200)
bin
teleforma/management/commands/teleforma-export-wifi-accounts.py

diff --git a/bin b/bin
index 7a7c9ab66099c6e93acacf48d589bfc9da5a9fc2..52d01bc8d0ec34d96ae3751fa5709a8ae05066fd 160000 (submodule)
--- a/bin
+++ b/bin
@@ -1 +1 @@
-Subproject commit 7a7c9ab66099c6e93acacf48d589bfc9da5a9fc2
+Subproject commit 52d01bc8d0ec34d96ae3751fa5709a8ae05066fd
index 59498a8c8af2360b91e00186a8087063b7ce145a..d4734601e406e016fd64226865e47533353b8bcb 100644 (file)
@@ -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)