summaryrefslogtreecommitdiff
path: root/tools/mmd/MmdDb.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mmd/MmdDb.py')
-rw-r--r--tools/mmd/MmdDb.py17
1 files changed, 5 insertions, 12 deletions
diff --git a/tools/mmd/MmdDb.py b/tools/mmd/MmdDb.py
index aa6ff03..356bcfe 100644
--- a/tools/mmd/MmdDb.py
+++ b/tools/mmd/MmdDb.py
@@ -133,23 +133,16 @@ class Db:
self.cursor.execute ('SELECT * FROM ssps WHERE timestamp >=? LIMIT 1', (timestamp,))
return self.cursor.fetchone ()
+ def satelliteDeleteObsoleteSSPs (self, timestamp):
+ self.cursor.execute ('DELETE FROM ssps WHERE timestamp >=?', (timestamp,))
+ self.conn.commit ()
+
def close (self):
self.cursor.close ()
self.conn.close ()
if __name__ == "__main__":
- db = Db ()
- print db.sessionFind ('1234567890')
- db.sessionInit ('1234567890', 'jogi@mur.at', '1')
- data = db.sessionFind ('1234567890')
- print data['id'], data['email']
- db.sessionDelete ('1234567890')
- print db.sessionFind ('1234567890')
- print db.userFindId ('1')
- db.userCreate ('1', 'Jogi', 'Hofmüller', 'jogi@mur.at', '', '', '', '')
- print db.userFindId ('1')
- db.userDelete ('1')
-
+ pass
# vim: tw=0 ts=2 expandtab
# EOF