diff options
author | flavio <fdanesse@gmail.com> | 2012-04-28 22:32:52 (GMT) |
---|---|---|
committer | flavio <fdanesse@gmail.com> | 2012-04-28 22:32:52 (GMT) |
commit | 955d443c0c43a06eb04f5ac870ae40e676765157 (patch) | |
tree | fe0d428c85c904a93ce3fed5ce0db9133201e39d /store.py | |
parent | b7d431cf773992b9e8a2058faf3c5894c28eb581 (diff) |
Filtro Completado
Diffstat (limited to 'store.py')
-rw-r--r-- | store.py | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -79,9 +79,7 @@ class Db: order = "ASC" else: order = "DESC" - mappedValue = "type" - if value == "Tipo": mappedValue = "type" elif value == "Prioridad": @@ -90,9 +88,7 @@ class Db: mappedValue = "launched" elif value == u"Expiración": mappedValue = "expires" - query = "select distinct " + mappedValue + " from notifications order by type " + order - return map(lambda x:x[mappedValue],self.run_query(query)) def set_fav(self, id_msg, fav=True): |