diff --git a/TWLight/users/models.py b/TWLight/users/models.py index b0f88b75f..cb0ab16c5 100644 --- a/TWLight/users/models.py +++ b/TWLight/users/models.py @@ -705,7 +705,7 @@ def check_sub(self, wp_sub): Verifies that the supplied Global Wikipedia User ID matches stored editor ID. Parameters ---------- - wp_sub : int + wp_sub : str Global Wikipedia User ID, used for guiid parameter in globaluserinfo calls. Returns @@ -713,7 +713,7 @@ def check_sub(self, wp_sub): None """ - if self.wp_sub != wp_sub: + if self.wp_sub != int(wp_sub): raise SuspiciousOperation( "Was asked to update Editor data, but the " "WP sub in the identity passed in did not match the wp_sub on "