Permalink
Browse files

Time to stable

  • Loading branch information...
trishnaguha committed Feb 26, 2016
1 parent 5e2e566 commit 071f41eb3b0a3ba927801ed5fdd19a3bbe8e66e8
Showing with 17 additions and 0 deletions.
  1. +10 −0 bodhi/models/models.py
  2. +7 −0 bodhi/templates/update.html
@@ -1756,6 +1756,16 @@ def met_testing_requirements(self):
return True
return False
@property
def days_to_stable(self):
""" Return the number of days until an update can be pushed to stable """
for comment in self.comments:
if comment.user.name == 'bodhi' and \
'can be pushed to stable now if the ' \
'maintainer wishes' in comment.text:
return (comment.timestamp - self.date_submitted).days
return 0
@property
def days_in_testing(self):
""" Return the number of days that this update has been in testing """
@@ -463,6 +463,13 @@ <h1>
</tr>
% endif
% if update.days_to_stable:
<tr>
<td>Days to Stable</td>
<td>${update.days_to_stable}</td>
</tr>
% endif
% if update.date_modified:
<tr>
<td>Modified</td>

0 comments on commit 071f41e

Please sign in to comment.