Skip to content
Prev Previous commit
Next Next commit
Testing cordinates
  • Loading branch information
Solracion committed Jul 22, 2021
commit 72365389970d8cc607aa644bfc729e47593005b7
7 changes: 3 additions & 4 deletions app/coordinates.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ def serialize(self,latitude,longitude):
:rtype: dict
"""

return {self.latitude,self.longitude}
return {cord}

def __str__(self):
return "lat: %s, long: %s" % (self.latitude, self.longitude)
return "lat: %s, long: %s" % (cord)

latitude = Coordinates("latitude")
longitude = Coordinates("longitude")
cord = Coordinates("latitude","longitude")