Merge lp:~sajoupa/turku/turku-api-fix-human-time-r53 into lp:turku/turku-api

Proposed by Laurent Sesquès
Status: Merged
Merged at revision: 58
Proposed branch: lp:~sajoupa/turku/turku-api-fix-human-time-r53
Merge into: lp:turku/turku-api
Diff against target: 12 lines (+2/-0)
1 file modified
turku_api/ (+2/-0)
To merge this branch: bzr merge lp:~sajoupa/turku/turku-api-fix-human-time-r53
Reviewer Review Type Date Requested Status
Junien Fridrick Approve
Review via email:

Description of the change handle sources with no last backup date in human_time (regression in r53)

To post a comment you must log in.
Revision history for this message
Junien Fridrick (axino) wrote :


review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'turku_api/'
2--- turku_api/ 2015-07-30 22:41:42 +0000
3+++ turku_api/ 2017-06-13 12:18:22 +0000
4@@ -46,6 +46,8 @@
7 def human_time(t):
8+ if t is None:
9+ return None
10 if abs( - t) >= datetime.timedelta(days=1):
11 return t
12 else:


People subscribed via source and target branches

to all changes: