black -t py37 TWLight/users/models.py
@@ -228,6 +228,7 @@ def editor_recent_edits(
wp_enough_recent_edits,
)
+
def editor_bundle_eligible(wp_valid, wp_enough_recent_edits):
if wp_valid and wp_enough_recent_edits:
return True
@@ -369,8 +370,6 @@ class Editor(models.Model):
),
)
-
-
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~ User-entered data ~~~~~~~~~~~~~~~~~~~~~~~~~~~
contributions = models.TextField(
# Translators: Describes information added by the user to describe their Wikipedia edits.
@@ -561,7 +560,9 @@ class Editor(models.Model):
self.wp_account_old_enough,
self.wp_not_blocked,
)
- self.wp_bundle_eligible = editor_bundle_eligible(self.wp_valid, self.wp_enough_recent_edits)
+ self.wp_bundle_eligible = editor_bundle_eligible(
+ self.wp_valid, self.wp_enough_recent_edits
+ )
self.user.save()
# Add language if the user hasn't selected one
