Browse Source

Typo fix.

tags/v0.1^2
Ben Kurtovic 12 years ago
parent
commit
d037913760
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      earwigbot/tasks/drn_clerkbot.py

+ 1
- 1
earwigbot/tasks/drn_clerkbot.py View File

@@ -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…
Cancel
Save