aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2019-10-20 13:28:30 +0100
committerGravatar Gareth Coles <[email protected]>2019-10-20 13:28:30 +0100
commitea149e7ee58b8889d71b6f4153530a1347465f2c (patch)
tree4fdd9be4a5b58f4fa039c70c9a50a9fecf85d7b8 /pydis_site
parentGH signup prevention, views and templates for settings pages (diff)
Signals: Move group changes outside of the loop
Diffstat (limited to 'pydis_site')
-rw-r--r--pydis_site/apps/home/signals.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/pydis_site/apps/home/signals.py b/pydis_site/apps/home/signals.py
index 9f286882..4bf50b78 100644
--- a/pydis_site/apps/home/signals.py
+++ b/pydis_site/apps/home/signals.py
@@ -251,10 +251,10 @@ class AllauthSignalListener:
except RoleMapping.DoesNotExist:
continue # No mapping exists
- account.user.groups.add(
- *[group for group in new_groups if group not in current_groups]
- )
+ account.user.groups.add(
+ *[group for group in new_groups if group not in current_groups]
+ )
- account.user.groups.remove(
- *[mapping.group for mapping in mappings if mapping.group not in new_groups]
- )
+ account.user.groups.remove(
+ *[mapping.group for mapping in mappings if mapping.group not in new_groups]
+ )