[billreminder] Return categories ordered by name.
- From: Og B. Maciel <ogmaciel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [billreminder] Return categories ordered by name.
- Date: Thu, 24 Feb 2011 02:47:18 +0000 (UTC)
commit cc0984e6d245d61b49e5d83b966915e67f5d2b71
Author: Og B. Maciel <ogmaciel gnome org>
Date: Wed Feb 23 21:45:36 2011 -0500
Return categories ordered by name.
src/lib/actions.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/lib/actions.py b/src/lib/actions.py
index 0ee181f..9c5c33d 100644
--- a/src/lib/actions.py
+++ b/src/lib/actions.py
@@ -147,7 +147,7 @@ class Actions(object):
try:
session = self.dal.Session()
- records = session.query(Category).filter_by(**kwargs).all()
+ records = session.query(Category).filter_by(**kwargs).order_by(Category.name).all()
except Exception, e:
print str(e)
finally:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]