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


The following commit has been merged in the debian branch:
commit c07b089b58f26fdaed0955195287e0b1cf06c537
Author: Sebastian Krzyszkowiak <seba.dos1 at gmail.com>
Date:   Tue Oct 6 19:23:00 2009 +0200

    opimd: SQLite-Tasks: change floats into ints

diff --git a/framework/subsystems/opimd/pimb_sqlite_tasks.py b/framework/subsystems/opimd/pimb_sqlite_tasks.py
index b669b5d..1b493d4 100644
--- a/framework/subsystems/opimd/pimb_sqlite_tasks.py
+++ b/framework/subsystems/opimd/pimb_sqlite_tasks.py
@@ -64,7 +64,7 @@ class SQLiteTasksBackend(Backend):
             cur = self.con.cursor()
             cur.execute("""CREATE TABLE IF NOT EXISTS tasks (
                 id INTEGER PRIMARY KEY,
-                Timestamp FLOAT,
+                Timestamp INTEGER,
                 Timezone TEXT,
                 Title TEXT,
                 Content TEXT,
@@ -140,7 +140,7 @@ class SQLiteTasksBackend(Backend):
                 raise OperationalError
 
             if entry.get('Timestamp'):
-                entry['Timestamp']=float(entry['Timestamp'])
+                entry['Timestamp']=int(entry['Timestamp'])
             entry_id = self._domain_handlers['Tasks'].register_entry(self, entry)
             self._entry_ids.append(entry_id)
         cur.close()

-- 
FSO frameworkd Debian packaging



More information about the pkg-fso-commits mailing list