Commit ba068455 by Victor Shnayder Committed by John Jarvis

fix bug in has_ended

parent 13ef1b9a
...@@ -133,7 +133,7 @@ class CourseDescriptor(SequenceDescriptor): ...@@ -133,7 +133,7 @@ class CourseDescriptor(SequenceDescriptor):
Returns True if the current time is after the specified course end date. Returns True if the current time is after the specified course end date.
Returns False if there is no end date specified. Returns False if there is no end date specified.
""" """
if self.end_date is None: if self.end is None:
return False return False
return time.gmtime() > self.end return time.gmtime() > self.end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment