[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:21 UTC 2011


The following commit has been merged in the debian branch:
commit 44ce0fbd017df1beb917ba0eb8b3860b6cac3c56
Author: Sebastian Krzyszkowiak <seba.dos1 at gmail.com>
Date:   Fri Jul 10 22:38:22 2009 +0200

    opimd: SQLite-Calls: fix tracebacks introduces by latest commits

diff --git a/framework/subsystems/opimd/pimb_sqlite_calls.py b/framework/subsystems/opimd/pimb_sqlite_calls.py
index 96321a7..efa9774 100644
--- a/framework/subsystems/opimd/pimb_sqlite_calls.py
+++ b/framework/subsystems/opimd/pimb_sqlite_calls.py
@@ -118,7 +118,6 @@ class SQLiteCallBackend(Backend):
         """Loads all entries from db"""
         keys = {0:'_backend_entry_id', 1:'Type', 2:'Timestamp', 3:'Timezone', 4:'Direction', 5:'Duration', 6:'Cost', 7:'Answered', 8:'New', 9:'Replied'}
         floatKeys = ['Timestamp', 'Duration']
-        intKeys = ['Answered', 'New', 'Replied']
         cur = self.con.cursor()
         try:
             cur.execute('SELECT id, Type, Timestamp, Timezone, Direction, Duration, Cost, Answered, New, Replied FROM calls WHERE deleted=0')
@@ -130,10 +129,8 @@ class SQLiteCallBackend(Backend):
         for line in lines:
             entry = {}
             for key in keys:
-                if keys[key] in floatKeys:
+                if keys[key] in floatKeys and line[key]:
                     entry[keys[key]] = float(line[key])
-                elif keys[key] in intKeys:
-                    entry[keys[key]] = int(line[key])
                 else:
                     entry[keys[key]] = line[key]
             try:

-- 
FSO frameworkd Debian packaging



More information about the pkg-fso-commits mailing list