Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We now use the "age" method in util.py to get relative dates and times (i.e. 3h hours ago), which uses the arrow library. There are two methods in util.py, get_age() and get_age_in_days() that we dont use anymore, as we use the age() method instead. pluralize() in util.py is also removed, as the only place we used this was in the get_ages, and we do other pluralizations in JS now anyway. The only other places that get_age() and get_age_in_days() were used were a handful of methods in models.py, but these were not used anymore either.
- Loading branch information
Showing
2 changed files
with
1 addition
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters