fix SpecTypeArgumentDate simple()

This commit is contained in:
jesopo 2020-02-06 16:40:02 +00:00
parent 01441efe75
commit f52a824ffb

View file

@ -79,7 +79,7 @@ class SpecArgumentTypeDate(SpecArgumentType):
return SpecArgumentType.name(self) or "yyyy-mm-dd"
def simple(self, args):
if args:
return date_human(args[0], 1)
return date_human(args[0]), 1
return None, 1
class SpecArgumentPrivateType(SpecArgumentType):