Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Undo even more of to_age; #634
Browse files Browse the repository at this point in the history
This is a hack to get "New Participants" up quickly. Really the to_age
helper in Aspen wants to be evolved.
  • Loading branch information
chadwhitacre committed Feb 12, 2013
1 parent 74138c5 commit ed313d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@
return out

def _to_age(participant):
# XXX I can't believe I'm doing this. Evolve aspen.utils.to_age!
age = to_age(participant['claimed_time'], fmt_past="%(age)s")
age = age.replace('just a moment', 'just now')
age = age.replace('a', '1').replace('an', '1')
words = ('zero', 'one', 'two','three', 'four', 'five', 'six', 'seven',
'eight', 'nine')
for i, word in enumerate(words):
Expand Down

0 comments on commit ed313d2

Please sign in to comment.