Ver a proveniência

Fix method names and arguments.

tags/v0.1^2
Ben Kurtovic há 12 anos
ascendente
cometimento
a2cf47aebf
1 ficheiros alterados com 4 adições e 4 eliminações
  1. +4
    -4
      earwigbot/wiki/category.py

+ 4
- 4
earwigbot/wiki/category.py Ver ficheiro

@@ -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,))

Carregando…
Cancelar
Guardar