Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2010-02-22 10:32:54 (GMT)
committer Simon Schampijer <simon@schampijer.de>2010-02-22 10:32:54 (GMT)
commit1d43dd706894d8eab7e0464c54f88b7ae814f684 (patch)
tree33a65c428d12460d29bd1e41c6a4caddce5bfbe5
parent3b5dc8880c94656877ab821a0266eddc8cd24ac3 (diff)
Correct order of resumable entries in Activity palette #1734
Match the order in the activity palette in the Home View with the order of the entries in the Journal
-rw-r--r--src/jarabe/desktop/favoritesview.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/jarabe/desktop/favoritesview.py b/src/jarabe/desktop/favoritesview.py
index aefae5f..9f3c37b 100644
--- a/src/jarabe/desktop/favoritesview.py
+++ b/src/jarabe/desktop/favoritesview.py
@@ -387,8 +387,9 @@ class ActivityIcon(CanvasIcon):
break
def _get_last_activity_async(self, bundle_id, properties):
- query = {'activity': bundle_id}
- datastore.find(query, sorting='-mtime', limit=self._MAX_RESUME_ENTRIES,
+ query = {'activity': bundle_id}
+ datastore.find(query, sorting=['+timestamp'],
+ limit=self._MAX_RESUME_ENTRIES,
properties=properties,
reply_handler=self.__get_last_activity_reply_handler_cb,
error_handler=self.__get_last_activity_error_handler_cb)