From 272ca3d3f7813684a55ef0318572e35a56f6e7ca Mon Sep 17 00:00:00 2001 From: Omar Al-Ithawi Date: Sun, 12 Nov 2023 20:57:48 +0300 Subject: [PATCH] fix: fixup previous commit --- drag_and_drop_v2/drag_and_drop_v2.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drag_and_drop_v2/drag_and_drop_v2.py b/drag_and_drop_v2/drag_and_drop_v2.py index cabe42953..6b99f9d93 100644 --- a/drag_and_drop_v2/drag_and_drop_v2.py +++ b/drag_and_drop_v2/drag_and_drop_v2.py @@ -474,12 +474,15 @@ def studio_view(self, context): import pdb; pdb.set_trace() - if statici18n_js_url := self.get_i18n_js_url(): - fragment.add_javascript_url(statici18n_js_url) - else: - depreacted_statici18n_js_url = self.get_deprecated_statici18n_js_url() - if depreacted_statici18n_js_url: - js_urls.append(depreacted_statici18n_js_url) + if static_i18n_js_url := self.get_i18n_js_url(): + fragment.add_javascript_url(static_i18n_js_url) + elif deprecated_statici18n_js_url := self.get_deprecated_statici18n_js_url(): + js_urls.append(deprecated_statici18n_js_url) + + print('===============================\n' * 20) + print('static_i18n_js_url', self.get_i18n_js_url()) + print('deprecated_statici18n_js_url', self.get_deprecated_statici18n_js_url()) + print('===============================\n' * 20) for css_url in css_urls: fragment.add_css_url(self.runtime.local_resource_url(self, css_url))