organizations-local 0.0.29__tar.gz → 0.0.30__tar.gz
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.
- {organizations_local-0.0.29 → organizations_local-0.0.30}/PKG-INFO +1 -1
- {organizations_local-0.0.29 → organizations_local-0.0.30}/organizations_local/src/organizations_local.py +19 -3
- {organizations_local-0.0.29 → organizations_local-0.0.30}/organizations_local.egg-info/PKG-INFO +1 -1
- {organizations_local-0.0.29 → organizations_local-0.0.30}/setup.py +1 -1
- {organizations_local-0.0.29 → organizations_local-0.0.30}/README.md +0 -0
- {organizations_local-0.0.29 → organizations_local-0.0.30}/organizations_local/src/__init__.py +0 -0
- {organizations_local-0.0.29 → organizations_local-0.0.30}/organizations_local/src/organizations_constants.py +0 -0
- {organizations_local-0.0.29 → organizations_local-0.0.30}/organizations_local.egg-info/SOURCES.txt +0 -0
- {organizations_local-0.0.29 → organizations_local-0.0.30}/organizations_local.egg-info/dependency_links.txt +0 -0
- {organizations_local-0.0.29 → organizations_local-0.0.30}/organizations_local.egg-info/requires.txt +0 -0
- {organizations_local-0.0.29 → organizations_local-0.0.30}/organizations_local.egg-info/top_level.txt +0 -0
- {organizations_local-0.0.29 → organizations_local-0.0.30}/pyproject.toml +0 -0
- {organizations_local-0.0.29 → organizations_local-0.0.30}/setup.cfg +0 -0
|
@@ -167,6 +167,7 @@ class OrganizationsLocal(GenericCRUDML, metaclass=MetaLogger,
|
|
|
167
167
|
|
|
168
168
|
return organizations_names_list
|
|
169
169
|
|
|
170
|
+
# Edited by Tal Goodman on 12.7.24
|
|
170
171
|
def get_organizations_ids_and_names_list_by_organizations_ids(
|
|
171
172
|
self, *, organizations_ids_list: list[int], lang_codes_list: list[LangCode] = None,
|
|
172
173
|
view_table_name: str = None) -> list[tuple[int, str]]:
|
|
@@ -198,6 +199,7 @@ class OrganizationsLocal(GenericCRUDML, metaclass=MetaLogger,
|
|
|
198
199
|
return test_organization_id
|
|
199
200
|
|
|
200
201
|
# If we add the support of multiple organizations per contact, We will have to fix this method
|
|
202
|
+
# Edited by Tal Goodman on 12.7.24
|
|
201
203
|
def get_update_status_and_information_list(self, *, last_modified_timestamp: str, main_profile_id: int) -> list[dict]:
|
|
202
204
|
if main_profile_id is None:
|
|
203
205
|
return UpdateStatus.UPDATE_CIRCLEZ
|
|
@@ -207,9 +209,23 @@ class OrganizationsLocal(GenericCRUDML, metaclass=MetaLogger,
|
|
|
207
209
|
where="profile_id = %s", params=(main_profile_id,), local_last_modified_column_name="updated_timestamp",
|
|
208
210
|
remote_last_modified_timestamp=last_modified_timestamp)
|
|
209
211
|
# Add organization_names to update_status_and_information_list
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
212
|
+
organizations_ids_list = []
|
|
213
|
+
for update_status_and_information in update_status_and_information_list:
|
|
214
|
+
organization_id = update_status_and_information.get("organization_id")
|
|
215
|
+
if organization_id is not None:
|
|
216
|
+
organizations_ids_list.append(organization_id)
|
|
217
|
+
|
|
218
|
+
organizations_ids_and_names_list = self.get_organizations_ids_and_names_list_by_organizations_ids(
|
|
219
|
+
organizations_ids_list=organizations_ids_list,
|
|
220
|
+
view_table_name="organization_ml_view")
|
|
221
|
+
|
|
222
|
+
# Convert organizations_ids_and_names_list to a dictionary
|
|
223
|
+
organizations_ids_and_names_dict = {item["organization_id"]: item["title"] for item in organizations_ids_and_names_list}
|
|
224
|
+
|
|
225
|
+
for update_status_and_information in update_status_and_information_list:
|
|
226
|
+
organization_id = update_status_and_information.get("organization_id")
|
|
227
|
+
if organization_id is not None:
|
|
228
|
+
update_status_and_information["organization_name"] = organizations_ids_and_names_dict.get(organization_id)
|
|
213
229
|
|
|
214
230
|
return update_status_and_information_list
|
|
215
231
|
|
|
@@ -6,7 +6,7 @@ package_dir = PACKAGE_NAME.replace("-", "_")
|
|
|
6
6
|
|
|
7
7
|
setuptools.setup(
|
|
8
8
|
name=PACKAGE_NAME,
|
|
9
|
-
version='0.0.
|
|
9
|
+
version='0.0.30', # https://pypi.org/project/organizations-local/
|
|
10
10
|
author="Circles",
|
|
11
11
|
author_email="info@circlez.ai",
|
|
12
12
|
description="PyPI Package for Circles organizations-local Python",
|
|
File without changes
|
{organizations_local-0.0.29 → organizations_local-0.0.30}/organizations_local/src/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{organizations_local-0.0.29 → organizations_local-0.0.30}/organizations_local.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{organizations_local-0.0.29 → organizations_local-0.0.30}/organizations_local.egg-info/requires.txt
RENAMED
|
File without changes
|
{organizations_local-0.0.29 → organizations_local-0.0.30}/organizations_local.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|