From ebffcde08c87c710c692e2ae66186f8754bc702e Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 9 Aug 2025 22:21:16 -0400 Subject: [PATCH] settings_data_result --- app/api/services/web_contents.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/app/api/services/web_contents.py b/app/api/services/web_contents.py index 853f49f..e810feb 100644 --- a/app/api/services/web_contents.py +++ b/app/api/services/web_contents.py @@ -36,13 +36,12 @@ class WebContentsService(BaseService): } # web_contents_data ={} settings_data_result = MembersProductsSettings.get_product_settings_by_subscription_uid(provision_uid) - for t in settings_data_result: - if t.settings_key.strip() is web_contents_data: - web_contents_data[t.settings_key.strip()] = t.setting_value.strip() - else: - web_contents_data[t.settings_key.strip()] = t.setting_value.strip() - - + if settings_data_result: + for t in settings_data_result: + if t.settings_key.strip() is web_contents_data: + web_contents_data[t.settings_key.strip()] = t.setting_value.strip() + else: + web_contents_data[t.settings_key.strip()] = t.setting_value.strip() return web_contents_data