From bac7cfcac589f5e9df052a284c035a338b68079b Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Thu, 23 Dec 2010 12:13:54 +0000 Subject: [PATCH] Fixes the validation checking --- hr/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hr/models.py b/hr/models.py index fdb93d3..223a12b 100644 --- a/hr/models.py +++ b/hr/models.py @@ -119,7 +119,7 @@ class Recommendation(models.Model): @property def is_valid(self): diff = datetime.utcnow() - self.user_character.corporation_date - if diff.days > settings.HR_RECOMMENDATION_DAYS and self.user_character == self.application.corporation: + if diff.days >= settings.HR_RECOMMENDATION_DAYS and self.user_character.corporation == self.application.corporation: return True return False