From d0d5cc4d0866d44eed652221940035d855296253 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 30 Jan 2020 21:12:31 +0000 Subject: split utils.datetime out in to .parse and .format --- modules/tweets/format.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/tweets/format.py') diff --git a/modules/tweets/format.py b/modules/tweets/format.py index 8726ae2b..aab1c62d 100644 --- a/modules/tweets/format.py +++ b/modules/tweets/format.py @@ -3,7 +3,8 @@ from src import utils def _timestamp(dt): seconds_since = time.time()-dt.timestamp() - timestamp = utils.datetime.to_pretty_time(seconds_since, max_units=2) + timestamp = utils.datetime.format.to_pretty_time( + seconds_since, max_units=2) return "%s ago" % timestamp def _normalise(tweet): -- cgit v1.3.1-10-gc9f91