From dbe9b57153bd1a5ade8a69b9e7a88815b84a2cf7 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 20 Nov 2011 02:46:33 -0500 Subject: [PATCH] Sleep a bit more logically, adjust color. --- bot/tasks/afc_history.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bot/tasks/afc_history.py b/bot/tasks/afc_history.py index 07a0e9f..a5c3611 100644 --- a/bot/tasks/afc_history.py +++ b/bot/tasks/afc_history.py @@ -74,7 +74,7 @@ class Task(BaseTask): category = generator.next() date = category.title().split("/")[-1] self.update_date(date, category) - sleep(15) + sleep(10) self.logger.info("Update complete") def generate(self, num_days): @@ -139,6 +139,7 @@ class Task(BaseTask): if ns == wiki.NS_TALK: new_page = page.toggle_talk() + sleep(2) if new_page.is_redirect(): return STATUS_NONE # Ignore accepted AFC/R requests return STATUS_ACCEPT @@ -181,9 +182,9 @@ class Task(BaseTask): ysize = self.graph.get("ysize", 900) width = self.graph.get("width", 1) xstep = self.graph.get("xAxisStep", 6) - pcolor = self.graph.get("pendingColor", "#f3eba3") - dcolor = self.graph.get("declinedColor", "#ffcdd5") - acolor = self.graph.get("acceptedColor", "#adfcad") + pcolor = self.graph.get("pendingColor", "#f0e460") + dcolor = self.graph.get("declinedColor", "#f291a6") + acolor = self.graph.get("acceptedColor", "#81fc4c") p1 = plt.bar(ind, pends, width, color=pcolor) p2 = plt.bar(ind, declines, width, color=dcolor, bottom=pends)