Skip to content

Commit 7236538

Browse files
committed
Testing cordinates
1 parent aaadc21 commit 7236538

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/coordinates.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ def serialize(self,latitude,longitude):
1919
:rtype: dict
2020
"""
2121

22-
return {self.latitude,self.longitude}
22+
return {cord}
2323

2424
def __str__(self):
25-
return "lat: %s, long: %s" % (self.latitude, self.longitude)
25+
return "lat: %s, long: %s" % (cord)
2626

27-
latitude = Coordinates("latitude")
28-
longitude = Coordinates("longitude")
27+
cord = Coordinates("latitude","longitude")

0 commit comments

Comments
 (0)