contact-person-profile-csv-imp-local 0.0.36__py3-none-any.whl → 0.0.38__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- contact_person_profile_csv_imp_local/CSVToContactPersonProfile.py +27 -12
- {contact_person_profile_csv_imp_local-0.0.36.dist-info → contact_person_profile_csv_imp_local-0.0.38.dist-info}/METADATA +1 -1
- {contact_person_profile_csv_imp_local-0.0.36.dist-info → contact_person_profile_csv_imp_local-0.0.38.dist-info}/RECORD +5 -5
- {contact_person_profile_csv_imp_local-0.0.36.dist-info → contact_person_profile_csv_imp_local-0.0.38.dist-info}/WHEEL +0 -0
- {contact_person_profile_csv_imp_local-0.0.36.dist-info → contact_person_profile_csv_imp_local-0.0.38.dist-info}/top_level.txt +0 -0
|
@@ -547,14 +547,14 @@ class CSVToContactPersonProfile(GenericCRUD, metaclass=MetaLogger,
|
|
|
547
547
|
"main_group_type_id": self.unknown_main_group_type_id,
|
|
548
548
|
# ml table:
|
|
549
549
|
"is_main_title": False,
|
|
550
|
-
"title
|
|
550
|
+
"title": group,
|
|
551
551
|
}
|
|
552
552
|
groups.append(group_dict)
|
|
553
553
|
for group in self.groups_list:
|
|
554
554
|
groups.append(group)
|
|
555
555
|
if len(groups) > 0:
|
|
556
556
|
groups_linked = self.contact_groups.insert_link_contact_group_with_group_local(
|
|
557
|
-
contact_id=contact_id,
|
|
557
|
+
contact_id=contact_id, groups_list_of_dicts=groups)
|
|
558
558
|
|
|
559
559
|
return groups_linked
|
|
560
560
|
|
|
@@ -621,7 +621,7 @@ class CSVToContactPersonProfile(GenericCRUD, metaclass=MetaLogger,
|
|
|
621
621
|
contact_id = contact_dict.get("contact_id")
|
|
622
622
|
contact_user_external_id = self.contact_user_external.insert_contact_and_link_to_existing_or_new_user_external(
|
|
623
623
|
contact_dict=contact_dict,
|
|
624
|
-
|
|
624
|
+
contact_email_address_str=contact_dict["email1"],
|
|
625
625
|
contact_id=contact_id,
|
|
626
626
|
system_id=contact_dict.get("system_id"),
|
|
627
627
|
user_external_dict={"username": contact_dict["email1"]}
|
|
@@ -638,22 +638,37 @@ class CSVToContactPersonProfile(GenericCRUD, metaclass=MetaLogger,
|
|
|
638
638
|
|
|
639
639
|
def __insert_link_contact_domains(self, contact_dict: dict) -> list[dict]:
|
|
640
640
|
contact_id = contact_dict.get("contact_id")
|
|
641
|
+
profiles_ids_list = contact_dict.get("profiles_ids_list")
|
|
641
642
|
website_count = 1
|
|
642
643
|
website_url = contact_dict.get("website" + str(website_count))
|
|
643
|
-
|
|
644
|
+
url_insert_information_list = []
|
|
644
645
|
while website_url:
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
646
|
+
if DomainLocal.is_domain(website_url):
|
|
647
|
+
domain_insert_information_dict = self.domain_local.link_contact_to_domain(
|
|
648
|
+
contact_id=contact_id, url=website_url)
|
|
649
|
+
url_insert_information_list.append(domain_insert_information_dict)
|
|
650
|
+
elif DomainLocal.is_url(website_url):
|
|
651
|
+
url_insert_information_dict = self.domain_local.link_contact_to_url(
|
|
652
|
+
contact_id=contact_id, url=website_url, profiles_ids=profiles_ids_list)
|
|
653
|
+
url_insert_information_list.append(url_insert_information_dict)
|
|
654
|
+
else:
|
|
655
|
+
self.logger.warining(f"__insert_link_contact_domains: website_url: {website_url} is not a valid domain or url")
|
|
648
656
|
website_count += 1
|
|
649
657
|
website_url = contact_dict.get("website" + str(website_count))
|
|
650
658
|
url = contact_dict.get("url")
|
|
651
659
|
if url:
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
660
|
+
if DomainLocal.is_domain(url):
|
|
661
|
+
domain_insert_information_dict = self.domain_local.link_contact_to_domain(
|
|
662
|
+
contact_id=contact_id, url=url)
|
|
663
|
+
url_insert_information_list.append(domain_insert_information_dict)
|
|
664
|
+
elif DomainLocal.is_url(url):
|
|
665
|
+
url_insert_information_dict = self.domain_local.link_contact_to_url(
|
|
666
|
+
contact_id=contact_id, url=url, profiles_ids=profiles_ids_list)
|
|
667
|
+
url_insert_information_list.append(url_insert_information_dict)
|
|
668
|
+
else:
|
|
669
|
+
self.logger.warining(f"__insert_link_contact_domains: url: {url} is not a valid domain or url")
|
|
670
|
+
|
|
671
|
+
return url_insert_information_list
|
|
657
672
|
|
|
658
673
|
def __insert_link_contact_location(self, contact_dict: dict) -> list[dict] or None:
|
|
659
674
|
contact_id = contact_dict.get("contact_id")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: contact-person-profile-csv-imp-local
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.38
|
|
4
4
|
Summary: PyPI Package for Circles CSVToContactPersonProfile-local Local/Remote Python
|
|
5
5
|
Home-page: https://github.com/circles-zone/contact-person-profile-csv-imp-local-python-package
|
|
6
6
|
Author: Circles
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
contact_person_profile_csv_imp_local/CSVToContactPersonProfile.py,sha256=
|
|
1
|
+
contact_person_profile_csv_imp_local/CSVToContactPersonProfile.py,sha256=P9xYZmLcAnTh6KTeV58mVfBNTe1ThzOXWEK_HpixCw4,50398
|
|
2
2
|
contact_person_profile_csv_imp_local/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
contact_person_profile_csv_imp_local/contact_person_profile_csv_imp_local_constants.py,sha256=SsMFKnI7y3P_kQxH21rxKnX7H4MZlemBy5vuv_Ns_a4,1180
|
|
4
|
-
contact_person_profile_csv_imp_local-0.0.
|
|
5
|
-
contact_person_profile_csv_imp_local-0.0.
|
|
6
|
-
contact_person_profile_csv_imp_local-0.0.
|
|
7
|
-
contact_person_profile_csv_imp_local-0.0.
|
|
4
|
+
contact_person_profile_csv_imp_local-0.0.38.dist-info/METADATA,sha256=9llHwWVhEzxk4BoVIQ_GnnHcKQL6PMXmxvbnqGHzZPc,1481
|
|
5
|
+
contact_person_profile_csv_imp_local-0.0.38.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
6
|
+
contact_person_profile_csv_imp_local-0.0.38.dist-info/top_level.txt,sha256=at6BnVzULDB109KZx9Cl9ClCHU4c0ykfV38WX-QR71U,37
|
|
7
|
+
contact_person_profile_csv_imp_local-0.0.38.dist-info/RECORD,,
|
|
File without changes
|