Skip to content
Snippets Groups Projects
Verified Commit 123e6059 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix import for existing parent listings.

parent 80778aa5
No related branches found
No related tags found
No related merge requests found
...@@ -124,6 +124,8 @@ class GpxImporter(object): ...@@ -124,6 +124,8 @@ class GpxImporter(object):
logger.info('Creating new master waypoint and listing for %s' % parent_code) logger.info('Creating new master waypoint and listing for %s' % parent_code)
parent_waypoint = Waypoint(code=parent_code) parent_waypoint = Waypoint(code=parent_code)
parent_listing = Listing(master_waypoint=parent_waypoint, waypoints=[parent_waypoint]) parent_listing = Listing(master_waypoint=parent_waypoint, waypoints=[parent_waypoint])
else:
parent_listing = parent_waypoint.listing
# Add waypoint # Add waypoint
logger.info('Linking %s to %s' % (waypoint.code, parent_code)) logger.info('Linking %s to %s' % (waypoint.code, parent_code))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment