diff options
author | Jogi Hofmüller <jogi@mur.at> | 2011-08-10 19:27:26 +0000 |
---|---|---|
committer | Jogi Hofmüller <jogi@mur.at> | 2011-08-10 19:27:26 +0000 |
commit | 35374a45348edf1db9fee0b269bc4cb862c5a1a4 (patch) | |
tree | 6beb3c05f1ec22b7c674c4eb9dab4cfba46728f3 /tools/mmd/MmdDb.py | |
parent | - changed groundtrack resolution from 5 to 1 minutes (diff) |
- changed ground track color to page background color
- started working on class Satellite
- creating SSPs works
- database contains table ssps (SubSatellitePoint) now
git-svn-id: https://svn.spreadspace.org/mur.sat@118 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'tools/mmd/MmdDb.py')
-rw-r--r-- | tools/mmd/MmdDb.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/mmd/MmdDb.py b/tools/mmd/MmdDb.py index 7d915cf..74b11bd 100644 --- a/tools/mmd/MmdDb.py +++ b/tools/mmd/MmdDb.py @@ -113,6 +113,15 @@ class Db: self.cursor.execute ('DELETE FROM location WHERE id=?', (location_id,)) self.conn.commit () + # satellite methods + def satelliteGetLatestSSP (self): + self.cursor.execute ('SELECT * FROM ssps ORDER BY timestamp DESC') + return self.cursor.fetchone () + + def satelliteInsertNewSSP (self, timestamp, longitude, latitude): + self.cursor.execute ('INSERT INTO ssps (timestamp, longitude, latitude) VALUES (?,?,?)', (timestamp, longitude, latitude,)) + self.conn.commit () + def close (self): self.cursor.close () self.conn.close () |