organizations-local 0.0.30__tar.gz → 0.0.32__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: organizations-local
3
- Version: 0.0.30
3
+ Version: 0.0.32
4
4
  Summary: PyPI Package for Circles organizations-local Python
5
5
  Home-page: https://github.com/circles-zone/organizations-local-python-package
6
6
  Author: Circles
@@ -175,8 +175,8 @@ class OrganizationsLocal(GenericCRUDML, metaclass=MetaLogger,
175
175
  view_table_name = view_table_name or DEFAULT_ML_VIEW_NAME
176
176
  organizations_ids_and_names_list = []
177
177
  select_clause_value = "organization_id, title"
178
- where_clause_value = "organization_id in ({})".format(
179
- ", ".join([str(organization_id) for organization_id in organizations_ids_list]))
178
+ placeholders = ', '.join(['%s'] * len(organizations_ids_list))
179
+ where_clause_value = f"organization_id in ({placeholders})"
180
180
  organizations_ids_and_names_list = self.select_multi_tuple_by_where(
181
181
  view_table_name=view_table_name, select_clause_value=select_clause_value,
182
182
  where=where_clause_value, params=organizations_ids_list
@@ -204,8 +204,9 @@ class OrganizationsLocal(GenericCRUDML, metaclass=MetaLogger,
204
204
  if main_profile_id is None:
205
205
  return UpdateStatus.UPDATE_CIRCLEZ
206
206
  sync_conflict_resolution = SyncConflictResolution()
207
+ # TODO: Shall we also check update_timestamp in organization_table to see if the name was changed?
207
208
  update_status_and_information_list: list[dict] = sync_conflict_resolution.get_update_status_and_information_list_by_where(
208
- schema_name=DEFAULT_SCHEMA_NAME, view_table_name="organization_profile_view",
209
+ schema_name="organization_profile", view_table_name="organization_profile_view",
209
210
  where="profile_id = %s", params=(main_profile_id,), local_last_modified_column_name="updated_timestamp",
210
211
  remote_last_modified_timestamp=last_modified_timestamp)
211
212
  # Add organization_names to update_status_and_information_list
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: organizations-local
3
- Version: 0.0.30
3
+ Version: 0.0.32
4
4
  Summary: PyPI Package for Circles organizations-local Python
5
5
  Home-page: https://github.com/circles-zone/organizations-local-python-package
6
6
  Author: Circles
@@ -6,7 +6,7 @@ package_dir = PACKAGE_NAME.replace("-", "_")
6
6
 
7
7
  setuptools.setup(
8
8
  name=PACKAGE_NAME,
9
- version='0.0.30', # https://pypi.org/project/organizations-local/
9
+ version='0.0.32', # 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",