|
@@ -101,7 +101,7 @@ def printMenuItem(p, yearsAsHeading = False, showDateSpan = False, showOnlyStart
|
101
|
101
|
dateto = " (%s - %s)" % (year, p.get("update", "")[0:4])
|
102
|
102
|
|
103
|
103
|
if nicelyFormatFullDate:
|
104
|
|
- dateto = " - " + datetime.strptime(p.date, "%Y-%m-%d").strftime("%B %d, %Y")
|
|
104
|
+ dateto = " - " + datetime.strptime(p.get("update", p.date), "%Y-%m-%d").strftime("%B %d, %Y")
|
105
|
105
|
|
106
|
106
|
print " * **[%s](%s)**%s" % (title, p.url, dateto)
|
107
|
107
|
|
|
@@ -116,7 +116,7 @@ def printMenuItem(p, yearsAsHeading = False, showDateSpan = False, showOnlyStart
|
116
|
116
|
|
117
|
117
|
def printRecentMenu(count = 5):
|
118
|
118
|
posts = [p for p in pages if "date" in p]
|
119
|
|
- posts.sort(key=lambda p: p.get("date"), reverse=True)
|
|
119
|
+ posts.sort(key=lambda p: p.get("update", p.get("date")), reverse=True)
|
120
|
120
|
for p in posts[0:count]:
|
121
|
121
|
printMenuItem(p, False, False, False, True)
|
122
|
122
|
|