From 78e0d3191c446262f000229cd94969f7924e1325 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 20 May 2003 18:59:41 +0000 Subject: year:?? is not a good name for a year. svn:r17 --- writeHTML.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'writeHTML.py') diff --git a/writeHTML.py b/writeHTML.py index 3c25500..1a6fcaf 100644 --- a/writeHTML.py +++ b/writeHTML.py @@ -95,7 +95,7 @@ f.close() entries = BibTeX.sortEntriesByDate(bib.entries) entries = BibTeX.splitSortedEntriesBy(entries, 'year') -if entries[-1][0] == None: +if entries[-1][0].startswith(""): entries[-1] = ("Unknown", entries[-1][1]) sections = [ ent[0] for ent in entries ] @@ -106,7 +106,7 @@ except ValueError: last_year = int(entries[-2][1][0].get('year')) years = map(str, range(first_year, last_year+1)) -if entries[-1][0] == 'year:??' +if entries[-1][0] == 'Unknown': years.append("Unknown") f = open(os.path.join(config.OUTPUT_DIR,"date.html"), 'w') -- cgit v1.2.3-70-g09d2