convert string proxies to strings in routing descriptions
This commit is contained in:
parent
73238f6943
commit
1fb84414f8
1 changed files with 3 additions and 1 deletions
|
@ -240,7 +240,9 @@ class RouteItem:
|
||||||
if self.new_level:
|
if self.new_level:
|
||||||
result['level'] = describe_location(self.level, locations)
|
result['level'] = describe_location(self.level, locations)
|
||||||
|
|
||||||
result['descriptions'] = self.descriptions
|
# convert all the string proxies to strings
|
||||||
|
# todo: better to let the api response serializer do this somehow?
|
||||||
|
result['descriptions'] = [(icon, str(instruction)) for (icon, instruction) in self.descriptions]
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue