summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/mmd/MmdSatellite.py3
-rw-r--r--tools/mmd/MmdWidgets.py9
2 files changed, 11 insertions, 1 deletions
diff --git a/tools/mmd/MmdSatellite.py b/tools/mmd/MmdSatellite.py
index 0bf4208..f10ca5f 100644
--- a/tools/mmd/MmdSatellite.py
+++ b/tools/mmd/MmdSatellite.py
@@ -148,6 +148,9 @@ class Satellite:
def _updateTrajectory (self):
self.db.satelliteDeleteObsoleteSSPs (time.strftime ('%s'))
+ def getLatestSSP (self):
+ return self.db.satelliteGetLatestSSP ()
+
if __name__ == "__main__":
satellite = Satellite ()
try:
diff --git a/tools/mmd/MmdWidgets.py b/tools/mmd/MmdWidgets.py
index b8f8be9..89e04b0 100644
--- a/tools/mmd/MmdWidgets.py
+++ b/tools/mmd/MmdWidgets.py
@@ -304,6 +304,7 @@ def indexWidget (lcol, rcol, status, debug_info = False):
<pre class="debug">
Debug Info
==========
+ SESSION:
SessionId: {0}
IP: {1}
Email: {2}
@@ -311,9 +312,14 @@ def indexWidget (lcol, rcol, status, debug_info = False):
Expires: {4}
Renewal: {5}
Now: {6}
+ =====
+ USER:
User's Location Name: {7}
Longitude: {8}
Latitude: {9}
+ ==========
+ SATELLITE:
+ Latest SSP: {10}
</pre>
'''.format (
debug_info.session_id,
@@ -325,7 +331,8 @@ def indexWidget (lcol, rcol, status, debug_info = False):
time.strftime ('%s'),
user_location.name,
user_location.longitude,
- user_location.latitude)
+ user_location.latitude,
+ debug_info.satellite.getLatestSSP()['timestamp'])
else:
debug = ''