소스 검색

Fixes.

tags/v0.1^2
Ben Kurtovic 12 년 전
부모
커밋
6bb438b60b
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +1
    -1
      bot/commands/replag.py
  2. +1
    -1
      bot/tasks/afc_history.py

+ 1
- 1
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."


+ 1
- 1
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


불러오는 중...
취소
저장