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


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

    opimd: SQLite-Notes: change floats into ints

diff --git a/framework/subsystems/opimd/pimb_sqlite_notes.py b/framework/subsystems/opimd/pimb_sqlite_notes.py
index 386b031..b5f0e41 100644
--- a/framework/subsystems/opimd/pimb_sqlite_notes.py
+++ b/framework/subsystems/opimd/pimb_sqlite_notes.py
@@ -64,7 +64,7 @@ class SQLiteNotesBackend(Backend):
             cur = self.con.cursor()
             cur.execute("""CREATE TABLE IF NOT EXISTS notes (
                 id INTEGER PRIMARY KEY,
-                Timestamp FLOAT,
+                Timestamp INTEGER,
                 Timezone TEXT,
                 Title TEXT,
                 Content TEXT);""")
@@ -138,7 +138,7 @@ class SQLiteNotesBackend(Backend):
                 raise OperationalError
 
             if entry.get('Timestamp'):
-                entry['Timestamp']=float(entry['Timestamp'])
+                entry['Timestamp']=int(entry['Timestamp'])
             entry_id = self._domain_handlers['Notes'].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