--- a/candolint/models.py Fri Jun 17 19:09:13 2016 +0800
+++ b/candolint/models.py Fri Jun 17 21:21:13 2016 +0800
d = self.finished - self.started
minutes, seconds = divmod(int(d.total_seconds()), 60)
- return '{} min {} sec'.format(minutes, seconds)
- return '{} sec'.format(seconds)
+ result.append('{} min'.format(minutes))
+ if seconds or not minutes:
+ result.append('{} sec'.format(seconds))
+ return ' '.join(result)