Browse files

[FIX] Ordering in BTree results

  • Loading branch information...
1 parent 1d15da2 commit 39e407675769662c441a069a794b9400280a69e2 @pferreir pferreir committed May 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 indico/MaKaC/webinterface/wcomponents.py
View
4 indico/MaKaC/webinterface/wcomponents.py
@@ -3325,12 +3325,12 @@ def getEventTimeline(self, tz):
future.append(conf)
if len(present) < MIN_PRESENT_EVENTS:
- present = list(index.values(oneMonthTS, thisMonthTS)) + present
+ present = list(index.itervalues(oneMonthTS, thisMonthTS)) + present
if not present:
maxDT = timezone('UTC').localize(datetime.utcfromtimestamp(index.maxKey())).astimezone(timezone(tz))
prevMonthTS = utc_timestamp(maxDT.replace(day=1))
- present = index.values(prevMonthTS)
+ present = list(index.itervalues(prevMonthTS))
numPast = self._categ.getNumConferences() - len(present) - len(future)
return present, future, len(future), numPast

0 comments on commit 39e4076

Please sign in to comment.