Skip to content

Commit 68dfa7a

Browse files
committed
teting
1 parent 225bcd0 commit 68dfa7a

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

app/coordinates.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,14 @@ def __init__(self, latitude, longitude):
1010
self.latitude = latitude
1111
self.longitude = longitude
1212

13-
class Serialize:
14-
def serialize(self,latitude,longitude):
13+
def serialize(self):
1514
"""
1615
Serializes the coordinates into a dict.
1716
1817
:returns: The serialized coordinates.
1918
:rtype: dict
2019
"""
21-
self.latitude=latitude
22-
self.longitude=longitude
23-
24-
return {self.latitude,self.longitude}
20+
return {"latitude": self.latitude, "longitude": self.longitude}
2521

2622
def __str__(self):
2723
return "lat: %s, long: %s" % (self.latitude, self.longitude)
28-
29-
latitude = Coordinates("latitude")
30-
longitude= Coordinates("longitude")

0 commit comments

Comments
 (0)