fewer explicit serialize() calls
This commit is contained in:
parent
9f609d9205
commit
c1eb47a0e0
2 changed files with 2 additions and 2 deletions
|
@ -260,7 +260,7 @@ def get_route(request, parameters: RouteParametersSchema):
|
|||
'destination': parameters.destination,
|
||||
'options': options.serialize_string(),
|
||||
}),
|
||||
result=route.serialize(),
|
||||
result=route,
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -172,7 +172,7 @@ class Route:
|
|||
('duration_str', duration_str),
|
||||
('summary', summary),
|
||||
('options_summary', self.options_summary),
|
||||
('items', tuple(item.serialize(locations=self.visible_locations) for item in items)),
|
||||
('items', items),
|
||||
))
|
||||
|
||||
@property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue