[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, debian, updated. upstream/0.9.5.5-717-g0f98819

Sebastian Krzyszkowiak seba.dos1 at gmail.com
Sat Aug 6 08:17:29 UTC 2011


The following commit has been merged in the debian branch:
commit cfbca177f23402d12d5ee9205018e592c4df7c86
Author: Sebastian Krzyszkowiak <seba.dos1 at gmail.com>
Date:   Sun Jul 19 01:44:50 2009 +0200

    opimd: SQLite-Calls: order by id desc as default

diff --git a/framework/subsystems/opimd/pimb_sqlite_calls.py b/framework/subsystems/opimd/pimb_sqlite_calls.py
index a7a0732..18c7af3 100644
--- a/framework/subsystems/opimd/pimb_sqlite_calls.py
+++ b/framework/subsystems/opimd/pimb_sqlite_calls.py
@@ -116,7 +116,7 @@ class SQLiteCallBackend(Backend):
         floatKeys = ['Timestamp', 'Duration']
         cur = self.con.cursor()
         try:
-            cur.execute('SELECT id, Type, Timestamp, Timezone, Direction, Duration, Cost, Answered, New, Replied FROM calls WHERE deleted=0')
+            cur.execute('SELECT id, Type, Timestamp, Timezone, Direction, Duration, Cost, Answered, New, Replied FROM calls WHERE deleted=0 ORDER BY id DESC')
             lines = cur.fetchall()
         except:
             logger.error("%s: Could not read from database (table calls)! Possible reason is old, uncompatible table structure. If you don't have important data, please remove %s file.", self.name, _SQLITE_FILE_NAME)

-- 
FSO frameworkd Debian packaging



More information about the pkg-fso-commits mailing list