From 4e1ece90be810b8a46b0553517b833a5d64586e1 Mon Sep 17 00:00:00 2001 From: Sara Burns Date: Thu, 30 May 2024 15:38:39 -0400 Subject: [PATCH] style: formatting --- tutoraspects/translations/translate_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tutoraspects/translations/translate_utils.py b/tutoraspects/translations/translate_utils.py index 9cf443067..345a5ae07 100644 --- a/tutoraspects/translations/translate_utils.py +++ b/tutoraspects/translations/translate_utils.py @@ -45,14 +45,14 @@ def translate_var( """ if not content or isinstance(content, str): return [] - + # if content is a list, run method for each list item if isinstance(content, list): strings = [] for item in content: strings.extend(self.translate_var(item, var_path)) return strings - + if isinstance(content, dict): # if var_path is wild, run method on every value in dict if var_path[0] == "*": @@ -69,7 +69,7 @@ def translate_var( return strings # otherwise, run method again 1 level deeper return self.translate_var(content.get(var_path[0], " "), var_path[1:]) - + print("Could not translate var_path: ", var_path, content) return []