fix bug in has_ended

This commit is contained in:
Victor Shnayder
2012-11-09 13:13:48 -05:00
committed by Carlos Andrés Rocha
parent 9fbcb4445e
commit 1b2371d64a

View File

@@ -133,7 +133,7 @@ class CourseDescriptor(SequenceDescriptor):
Returns True if the current time is after the specified course end date.
Returns False if there is no end date specified.
"""
if self.end_date is None:
if self.end is None:
return False
return time.gmtime() > self.end