organizations-local 0.0.27__py3-none-any.whl → 0.0.28__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.
- organizations_local/organizations_local.py +17 -4
- {organizations_local-0.0.27.dist-info → organizations_local-0.0.28.dist-info}/METADATA +1 -1
- organizations_local-0.0.28.dist-info/RECORD +7 -0
- {organizations_local-0.0.27.dist-info → organizations_local-0.0.28.dist-info}/WHEEL +1 -1
- organizations_local-0.0.27.dist-info/RECORD +0 -7
- {organizations_local-0.0.27.dist-info → organizations_local-0.0.28.dist-info}/top_level.txt +0 -0
|
@@ -183,12 +183,25 @@ class OrganizationsLocal(GenericCRUDML, metaclass=MetaLogger,
|
|
|
183
183
|
return test_organization_id
|
|
184
184
|
|
|
185
185
|
# If we add the support of multiple organizations per contact, We will have to fix this method
|
|
186
|
-
def
|
|
186
|
+
def get_update_status_and_information_list(self, *, last_modified_timestamp: str, main_profile_id: int) -> list[dict]:
|
|
187
187
|
if main_profile_id is None:
|
|
188
188
|
return UpdateStatus.UPDATE_CIRCLEZ
|
|
189
189
|
sync_conflict_resolution = SyncConflictResolution()
|
|
190
|
-
|
|
190
|
+
update_status_and_information_list: list[dict] = sync_conflict_resolution.get_update_status_and_information_list_by_where(
|
|
191
191
|
schema_name=DEFAULT_SCHEMA_NAME, view_table_name="organization_profile_view",
|
|
192
|
-
where="profile_id = %s", params=(main_profile_id,),
|
|
192
|
+
where="profile_id = %s", params=(main_profile_id,), local_last_modified_column_name="updated_timestamp",
|
|
193
193
|
remote_last_modified_timestamp=last_modified_timestamp)
|
|
194
|
-
return
|
|
194
|
+
return update_status_and_information_list
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
def get_organization_name_by_organization_identifier(self, organization_identifier: str) -> str or None:
|
|
199
|
+
organization_name=self.select_one_value_by_column_and_value(
|
|
200
|
+
select_clause_value="name",
|
|
201
|
+
schema_name="organization",
|
|
202
|
+
view_table_name="organization_view",
|
|
203
|
+
column_name="identifier",
|
|
204
|
+
column_value=organization_identifier,
|
|
205
|
+
)
|
|
206
|
+
|
|
207
|
+
return organization_name
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
organizations_local/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
organizations_local/organizations_constants.py,sha256=pxyAMmv4BFCfzyDsF92vImLdazA7_0ecKyVmOR9peEE,900
|
|
3
|
+
organizations_local/organizations_local.py,sha256=TViHrNnCa8y5Q7_xoKBhxrFpiffU-pM2Wn-l3DMYHvs,10891
|
|
4
|
+
organizations_local-0.0.28.dist-info/METADATA,sha256=xLsi0xo4HzHESojPkBI5yCUVzAJhwoW88JF1Pdx4wPY,654
|
|
5
|
+
organizations_local-0.0.28.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
|
|
6
|
+
organizations_local-0.0.28.dist-info/top_level.txt,sha256=Y8wRcm3jFTyMdysBub_P8iqX1VOMS0ohUxA1GQdngFU,20
|
|
7
|
+
organizations_local-0.0.28.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
organizations_local/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
organizations_local/organizations_constants.py,sha256=pxyAMmv4BFCfzyDsF92vImLdazA7_0ecKyVmOR9peEE,900
|
|
3
|
-
organizations_local/organizations_local.py,sha256=ika3TEYhrVB66o7wRAAZMQsBX-N7i7bxwLPYl4s4Hk8,10018
|
|
4
|
-
organizations_local-0.0.27.dist-info/METADATA,sha256=rcx-kV7etxfpamYS87qE9OjtenEYlK4D9L5goPVSAI8,654
|
|
5
|
-
organizations_local-0.0.27.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
|
|
6
|
-
organizations_local-0.0.27.dist-info/top_level.txt,sha256=Y8wRcm3jFTyMdysBub_P8iqX1VOMS0ohUxA1GQdngFU,20
|
|
7
|
-
organizations_local-0.0.27.dist-info/RECORD,,
|
|
File without changes
|