Fixup: datetime and date obj
This commit is contained in:
parent
cce5313ba8
commit
5c56d0c3ba
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class Deadline(yaml.YAMLObject):
|
||||||
})
|
})
|
||||||
|
|
||||||
def test(self):
|
def test(self):
|
||||||
return self.time <= datetime.datetime.now()
|
return self.time <= datetime.date.now()
|
||||||
|
|
||||||
|
|
||||||
class Course(yaml.YAMLObject):
|
class Course(yaml.YAMLObject):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue