From 6bb438b60bf486ad677b550c91c072ddc915a9ca Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 19 Nov 2011 16:48:05 -0500 Subject: [PATCH] Fixes. --- bot/commands/replag.py | 2 +- bot/tasks/afc_history.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/commands/replag.py b/bot/commands/replag.py index 448555e..2eebadc 100644 --- a/bot/commands/replag.py +++ b/bot/commands/replag.py @@ -22,7 +22,7 @@ class Command(BaseCommand): conn = oursql.connect(**args) with conn.cursor() as cursor: cursor.execute("SELECT NOW() - MAX(rev_timestamp) FROM revision") - replag = cursor.fetchall()[0][0] + replag = int(cursor.fetchall()[0][0]) conn.close() msg = "Replag on \x0302{0}\x0301 is \x02{1}\x0F seconds." diff --git a/bot/tasks/afc_history.py b/bot/tasks/afc_history.py index e7a627f..6792546 100644 --- a/bot/tasks/afc_history.py +++ b/bot/tasks/afc_history.py @@ -82,7 +82,7 @@ class Task(BaseTask): date_base = self.categories["dateBase"] current = datetime.utcnow() while 1: - subcat = current.stftime("%d %B %Y") + subcat = current.strftime("%d %B %Y") title = "/".join((date_base, subcat)) yield self.site.get_category(title) current -= timedelta(1) # Subtract one day from date