Browse Source

Fix method names and arguments.

tags/v0.1^2
Ben Kurtovic 12 years ago
parent
commit
a2cf47aebf
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      earwigbot/wiki/category.py

+ 4
- 4
earwigbot/wiki/category.py View File

@@ -123,10 +123,10 @@ class Category(Page):
def _get_size(self, member_type): def _get_size(self, member_type):
"""Return the size of the category.""" """Return the size of the category."""
services = { 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 @property
def size(self): def size(self):
@@ -202,4 +202,4 @@ class Category(Page):
} }
if follow_redirects is None: if follow_redirects is None:
follow_redirects = self._follow_redirects follow_redirects = self._follow_redirects
return self.site.delegate(services, (follow_redirects,))
return self.site.delegate(services, (self, follow_redirects,))

Loading…
Cancel
Save