From ee7004236e91b4ff0b9bb8a674800293e393be79 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 18 Oct 2025 05:47:31 -0400 Subject: [PATCH] more location ata --- app/api/services/web_contents.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/app/api/services/web_contents.py b/app/api/services/web_contents.py index b5b3253..a65f0d3 100644 --- a/app/api/services/web_contents.py +++ b/app/api/services/web_contents.py @@ -58,6 +58,13 @@ class WebContentsService(BaseService): @staticmethod def get_web_trafic_data(data): provision_uid = data.get('provision_uid', '') + country = data.get('country', '') + region = data.get('region', '') + city = data.get('city', '') + latitude = data.get('latitude', '') + longitude = data.get('longitude', '') + + membersSubResult = MembersProducts.get_member_product_by_subscription_uid(provision_uid) if not membersSubResult: @@ -76,9 +83,11 @@ class WebContentsService(BaseService): "provision_uid": provision_uid, "member_id": member_id, "product_id": product_id, - "site_logo_text": "MY-GOOD-LOGO", - "site_contact_email": "email@specialemail.com", - "site_contact_phone": "911 111 1111", + "country": country, + "region": region, + "city": city, + "latitude": latitude, + "longitude": longitude, } logger.error(f"Going for Thread ******************** ")