Browse Source

Rename tasks, remove feed_dailycats, add image_display_resize.

tags/v0.1^2
Ben Kurtovic 12 years ago
parent
commit
17c99248ce
3 changed files with 7 additions and 7 deletions
  1. +1
    -1
      earwigbot/tasks/blp_tag.py
  2. +5
    -5
      earwigbot/tasks/image_display_resize.py
  3. +1
    -1
      earwigbot/tasks/wrong_mime.py

earwigbot/tasks/blptag.py → earwigbot/tasks/blp_tag.py View File

@@ -27,7 +27,7 @@ __all__ = ["Task"]
class Task(BaseTask): class Task(BaseTask):
"""A task to add |blp=yes to ``{{WPB}}`` or ``{{WPBS}}`` when it is used """A task to add |blp=yes to ``{{WPB}}`` or ``{{WPBS}}`` when it is used
along with ``{{WP Biography}}``.""" along with ``{{WP Biography}}``."""
name = "blptag"
name = "blp_tag"


def setup(self): def setup(self):
pass pass

earwigbot/tasks/feed_dailycats.py → earwigbot/tasks/image_display_resize.py View File

@@ -20,13 +20,13 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE. # SOFTWARE.


from earwigbot.tasks import BaseTask
from earwigbot.tasks import Task


__all__ = ["Task"]
__all__ = ["ImageDisplayResize"]


class Task(BaseTask):
"""A task to create daily categories for [[WP:FEED]]."""
name = "feed_dailycats"
class ImageDisplayResize(Task):
"""A task to resize upscaled portraits in infoboxes."""
name = "image_display_resize"


def setup(self): def setup(self):
pass pass

earwigbot/tasks/wrongmime.py → earwigbot/tasks/wrong_mime.py View File

@@ -27,7 +27,7 @@ __all__ = ["Task"]
class Task(BaseTask): class Task(BaseTask):
"""A task to tag files whose extensions do not agree with their MIME """A task to tag files whose extensions do not agree with their MIME
type.""" type."""
name = "wrongmime"
name = "wrong_mime"


def setup(self): def setup(self):
pass pass

Loading…
Cancel
Save