diff options
author | Jogi Hofmüller <jogi@mur.at> | 2011-07-31 15:52:59 +0000 |
---|---|---|
committer | Jogi Hofmüller <jogi@mur.at> | 2011-07-31 15:52:59 +0000 |
commit | f852eea73acb6d04d7b9213949fc521b92636a96 (patch) | |
tree | 38cedb0c6c4fba3f99767594845dbe64237533b7 /tools/mmd/MmdMaintainance.py | |
parent | 1wire for DS1821 works now (diff) |
- new module MmdUser.py
- registration works basically
git-svn-id: https://svn.spreadspace.org/mur.sat@85 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'tools/mmd/MmdMaintainance.py')
-rw-r--r-- | tools/mmd/MmdMaintainance.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/mmd/MmdMaintainance.py b/tools/mmd/MmdMaintainance.py new file mode 100644 index 0000000..32a38ba --- /dev/null +++ b/tools/mmd/MmdMaintainance.py @@ -0,0 +1,8 @@ +#!/usr/bin/env python + +import time +from mmd.MmdDb import Db + +db = Db () +print "Deleted {0} expired session(s)".format (db.sessionDeleteExpired (int (time.strftime ('%s')))) +db.close () |