comparison roundup/cgi/templating.py @ 5448:754be676ccc8

set key for history sort to avoid sorting history args (could be a dict)
author Christof Meerwald <cmeerw@cmeerw.org>
date Thu, 19 Jul 2018 22:23:53 +0100
parents 60535a4822ab
children a35d4cc8cd1a
comparison
equal deleted inserted replaced
5447:41532b2ab141 5448:754be676ccc8
973 current[prop_n] = '<a rel="nofollow" href="%s%s">%s</a>'%( 973 current[prop_n] = '<a rel="nofollow" href="%s%s">%s</a>'%(
974 classname, id, current[prop_n]) 974 classname, id, current[prop_n])
975 975
976 # get the journal, sort and reverse 976 # get the journal, sort and reverse
977 history = self._klass.history(self._nodeid, skipquiet=(not showall)) 977 history = self._klass.history(self._nodeid, skipquiet=(not showall))
978 history.sort() 978 history.sort(key=lambda a: a[:3])
979 history.reverse() 979 history.reverse()
980 980
981 # restrict the volume 981 # restrict the volume
982 if limit: 982 if limit:
983 history = history[:limit] 983 history = history[:limit]

Roundup Issue Tracker: http://roundup-tracker.org/