put things in proper order
This commit is contained in:
parent
9f213f3c1f
commit
3e9a9fee4d
@ -33,5 +33,4 @@ class Command(BaseCommand):
|
||||
gpx = dict(xmltodict.parse(fd.read()))['gpx']
|
||||
user = self.user
|
||||
|
||||
created, track = Track.objects.get_or_create_from_gpx(gpx, user)
|
||||
print track
|
||||
Track.objects.get_or_create_from_gpx(gpx, user)
|
||||
|
@ -36,7 +36,7 @@ class TrackManager(models.Manager):
|
||||
time=pt['time'],
|
||||
elevation=pt['ele'],
|
||||
point=geos.Point(lon, lat))
|
||||
return created, track
|
||||
return track, created
|
||||
|
||||
|
||||
class Track(models.Model):
|
||||
|
Loading…
Reference in New Issue
Block a user