diff options
Diffstat (limited to 'tools/mmd')
-rw-r--r-- | tools/mmd/MmdCommands.py | 3 | ||||
-rw-r--r-- | tools/mmd/MmdSession.py | 3 |
2 files changed, 5 insertions, 1 deletions
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 <noreply@mur.at> To: "{0} {1}" <{2}> diff --git a/tools/mmd/MmdSession.py b/tools/mmd/MmdSession.py index 848a342..93c0a63 100644 --- a/tools/mmd/MmdSession.py +++ b/tools/mmd/MmdSession.py @@ -95,6 +95,9 @@ class Session: def getQsLocationName (self): return self.getField ('location_name') + def getQsAltitude (self): + return self.getField ('altitude') + def getField (self, field): try: return escape (self.qs.get (field)[0]) |