From 1fb84414f8510ff23fee479f696f303fb56e0fbf Mon Sep 17 00:00:00 2001 From: Gwendolyn Date: Sun, 3 Dec 2023 20:34:07 +0100 Subject: [PATCH] convert string proxies to strings in routing descriptions --- src/c3nav/routing/route.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/c3nav/routing/route.py b/src/c3nav/routing/route.py index a56a29eb..e9fb1743 100644 --- a/src/c3nav/routing/route.py +++ b/src/c3nav/routing/route.py @@ -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