瀏覽代碼

Typo fix.

tags/v0.1^2
Ben Kurtovic 12 年之前
父節點
當前提交
d037913760
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      earwigbot/tasks/drn_clerkbot.py

+ 1
- 1
earwigbot/tasks/drn_clerkbot.py 查看文件

@@ -713,7 +713,7 @@ class DRNClerkBot(Task):
row = "{{" + self.tl_chart_row + data.format(**case)
return row + "|sm={{{small|}}}}}\n"

def format_time_since(self, dt):
def format_time(self, dt):
"""Return a string telling the time since datetime occured."""
parts = [("year", 31536000), ("day", 86400), ("hour", 3600)]
seconds = int((datetime.utcnow() - dt).total_seconds())


Loading…
取消
儲存