From a2cf47aebfe7c8bc86b3b104592659e40e56c46c Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 5 Jul 2012 21:10:14 -0400 Subject: [PATCH] Fix method names and arguments. --- earwigbot/wiki/category.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/earwigbot/wiki/category.py b/earwigbot/wiki/category.py index 401047b..5158ef6 100644 --- a/earwigbot/wiki/category.py +++ b/earwigbot/wiki/category.py @@ -123,10 +123,10 @@ class Category(Page): def _get_size(self, member_type): """Return the size of the category.""" services = { - self.site.SERVICE_API: self._size_via_api, - self.site.SERVICE_SQL: self._size_via_sql + self.site.SERVICE_API: self._get_size_via_api, + self.site.SERVICE_SQL: self._get_size_via_sql } - return self.site.delegate(services, (member_type,)) + return self.site.delegate(services, (self, member_type,)) @property def size(self): @@ -202,4 +202,4 @@ class Category(Page): } if follow_redirects is None: follow_redirects = self._follow_redirects - return self.site.delegate(services, (follow_redirects,)) + return self.site.delegate(services, (self, follow_redirects,))