convert string proxies to strings in routing descriptions

This commit is contained in:
Gwendolyn 2023-12-03 20:34:07 +01:00
parent 73238f6943
commit 1fb84414f8

View file

@ -240,7 +240,9 @@ class RouteItem:
if self.new_level:
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