Browse Source

Quick commit of a small amount of work.

pull/15/head
Ben Kurtovic 11 years ago
parent
commit
2a932c7de1
1 changed files with 13 additions and 2 deletions
  1. +13
    -2
      tasks/afc_undated.py

+ 13
- 2
tasks/afc_undated.py View File

@@ -20,6 +20,8 @@
# 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.


import mwparserfromhell

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


class AFCUndated(Task): class AFCUndated(Task):
@@ -27,7 +29,16 @@ class AFCUndated(Task):
name = "afc_undated" name = "afc_undated"


def setup(self): def setup(self):
pass
cfg = self.config.tasks.get(self.name, {})
self.category = cfg.get("category", "Undated AfC submissions")
default_summary = "Adding timestamp to undated [[WP:AFC|Articles for creation]] submission."
self.summary = self.make_summary(cfg.get("summary", default_summary))


def run(self, **kwargs): def run(self, **kwargs):
pass
counter = 0
for page in cat:
if counter % 10:
if self.shutoff_enabled():
return True
###
counter += 1

Loading…
Cancel
Save