Quellcode durchsuchen

Rename tasks, remove feed_dailycats, add image_display_resize.

tags/v0.1^2
Ben Kurtovic vor 12 Jahren
Ursprung
Commit
17c99248ce
3 geänderte Dateien mit 7 neuen und 7 gelöschten Zeilen
  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 Datei anzeigen

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

def setup(self):
pass

earwigbot/tasks/feed_dailycats.py → earwigbot/tasks/image_display_resize.py Datei anzeigen

@@ -20,13 +20,13 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# 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):
pass

earwigbot/tasks/wrongmime.py → earwigbot/tasks/wrong_mime.py Datei anzeigen

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

def setup(self):
pass

Laden…
Abbrechen
Speichern