diff options
-rwxr-xr-x | debdate | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -38,7 +38,10 @@ ERR_MSG = "Today is {isodate} of the Debianless Age" class DebDate: - def __init__(self, distro_info_file='/usr/share/distro-info/debian.csv'): + def __init__( + self, + distro_info_file='/usr/share/distro-info/debian.csv', + nameless_age=datetime.date(1993, 8, 1)): self.releases = [] try: with open(distro_info_file) as fp: @@ -59,6 +62,11 @@ class DebDate: self.releases.sort(key=lambda x: x[0], reverse=True) if not self.releases: self.releases = RELEASES + if nameless_age: + self.releases.append(( + nameless_age, + 'Nameless Age' + )) def get_release(self, day): data = {} |