diff options
| author | Nick Mathewson <nickm@torproject.org> | 2003-05-20 18:59:41 +0000 |
|---|---|---|
| committer | Nick Mathewson <nickm@torproject.org> | 2003-05-20 18:59:41 +0000 |
| commit | 78e0d3191c446262f000229cd94969f7924e1325 (patch) | |
| tree | 472babf84f148c29e0f78e40bf337ba138fbff6f | |
| parent | 7f2c5556af19c7d3e68baa421c4d28d32916fb21 (diff) | |
| download | anonbib-78e0d3191c446262f000229cd94969f7924e1325.tar.gz | |
year:?? is not a good name for a year.
svn:r17
| -rw-r--r-- | writeHTML.py | 4 |
1 files changed, 2 insertions, 2 deletions
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("<span class='bad'>"): 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') |
