diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2017-05-27 12:22:16 +0200 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2017-05-27 12:22:16 +0200 |
commit | f849293780267d8fe8408eab2fac784d31d4baab (patch) | |
tree | 5bf15d214c006da927976498a91f787e0a0df47f | |
parent | c8345be8af86ae12d12e3d9a70e74e75a176e857 (diff) |
Add a nameless age before version 0.01 (aproximated) and buzz
-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 = {} |