From 3e79920455c129018185610f1f039326459313a0 Mon Sep 17 00:00:00 2001 From: Jogi Hofmüller Date: Thu, 11 Aug 2011 20:11:06 +0000 Subject: - added handling of altitude value in register command and Session () git-svn-id: https://svn.spreadspace.org/mur.sat@133 7de4ea59-55d0-425e-a1af-a3118ea81d4c --- tools/mmd/MmdCommands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/mmd/MmdCommands.py') diff --git a/tools/mmd/MmdCommands.py b/tools/mmd/MmdCommands.py index 45f66af..a60bf51 100644 --- a/tools/mmd/MmdCommands.py +++ b/tools/mmd/MmdCommands.py @@ -49,6 +49,7 @@ def register (session): location_name = session.getQsLocationName () password = session.getQsPassword () confirm = session.getQsConfirm () + altitude = session.getQsAltitude () if password != confirm: error_message = {'error': 'Password', 'description': 'Passwords do not match.'} @@ -58,7 +59,7 @@ def register (session): code = user.create (session.session_id, firstname, lastname, email, callsign, password) if longitude != '' and latitude != '' and location_name != '': - user.addLocation (location_name, longitude, latitude, 'yes') + user.addLocation (location_name, longitude, latitude, altitude, 'yes') message = '''From: noreply To: "{0} {1}" <{2}> -- cgit v1.2.3