瀏覽代碼

int(timedelta.total_seconds())

tags/v0.1^2
Ben Kurtovic 12 年之前
父節點
當前提交
263582f48c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      earwigbot/tasks/drn_clerkbot.py

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

@@ -596,7 +596,7 @@ class DRNClerkBot(Task):

def format_time_since(self, dt):
parts = [("year", 31536000), ("day", 86400), ("hour", 3600)]
seconds = (datetime.utcnow() - dt).total_seconds()
seconds = int((datetime.utcnow() - dt).total_seconds())
msg = []
for name, size in parts:
num = seconds // size


Loading…
取消
儲存