Browse files

Update status when querying

Otherwise the status is only updated when the issues page is viewed.
This fixes a race condition where the issue may have been closed but the
status won't reflect that and may still allow updates.
  • Loading branch information...
rmorell committed May 22, 2012
1 parent 5782599 commit 960ad87711285eee3cf44663d2c19a2d769d2212
Showing with 2 additions and 0 deletions.
  1. +2 −0
@@ -80,9 +80,11 @@ def hours_left(self):
return hours
def is_active(self):
+ self.update_status()
return self.status in ('active')
def has_results(self):
+ self.update_status()
return self.status in ('done')
def member_is_creator(self,member=None):

0 comments on commit 960ad87

Please sign in to comment.