service.py

changeset 42
0b53b7c70875
parent 38
d0ae1996abdd
child 48
428cfdf64ccc
--- a/service.py	Wed Jun 28 17:52:42 2017 +0300
+++ b/service.py	Sun Jul 02 16:14:56 2017 +0300
@@ -107,7 +107,7 @@
 
 def time_representation(time, relative = True):
 	time_difference = time - now()
-	if relative and time_difference > timedelta(0) and time_difference < timedelta(minutes = 1):
+	if relative and timedelta(minutes = -1) < time_difference < timedelta(minutes = 1):
 		return tr('right-now', 'misc-text')
 	elif relative and time_difference > timedelta(0) and time_difference < timedelta(minutes = 10):
 		return '%dm' % round(time_difference.seconds / 60)

mercurial