tgshops-integrations 3.6__tar.gz → 3.8__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (20) hide show
  1. {tgshops_integrations-3.6 → tgshops_integrations-3.8}/PKG-INFO +1 -1
  2. {tgshops_integrations-3.6 → tgshops_integrations-3.8}/setup.py +5 -2
  3. {tgshops_integrations-3.6 → tgshops_integrations-3.8}/tgshops_integrations/nocodb_connector/categories_management.py +10 -9
  4. {tgshops_integrations-3.6 → tgshops_integrations-3.8}/tgshops_integrations.egg-info/PKG-INFO +1 -1
  5. {tgshops_integrations-3.6 → tgshops_integrations-3.8}/README.md +0 -0
  6. {tgshops_integrations-3.6 → tgshops_integrations-3.8}/setup.cfg +0 -0
  7. {tgshops_integrations-3.6 → tgshops_integrations-3.8}/tgshops_integrations/__init__.py +0 -0
  8. {tgshops_integrations-3.6 → tgshops_integrations-3.8}/tgshops_integrations/middlewares/__init__.py +0 -0
  9. {tgshops_integrations-3.6 → tgshops_integrations-3.8}/tgshops_integrations/middlewares/gateway.py +0 -0
  10. {tgshops_integrations-3.6 → tgshops_integrations-3.8}/tgshops_integrations/models/__init__.py +0 -0
  11. {tgshops_integrations-3.6 → tgshops_integrations-3.8}/tgshops_integrations/models/categories.py +0 -0
  12. {tgshops_integrations-3.6 → tgshops_integrations-3.8}/tgshops_integrations/models/products.py +0 -0
  13. {tgshops_integrations-3.6 → tgshops_integrations-3.8}/tgshops_integrations/nocodb_connector/__init__.py +0 -0
  14. {tgshops_integrations-3.6 → tgshops_integrations-3.8}/tgshops_integrations/nocodb_connector/client.py +0 -0
  15. {tgshops_integrations-3.6 → tgshops_integrations-3.8}/tgshops_integrations/nocodb_connector/model_mapping.py +0 -0
  16. {tgshops_integrations-3.6 → tgshops_integrations-3.8}/tgshops_integrations/nocodb_connector/products_management.py +0 -0
  17. {tgshops_integrations-3.6 → tgshops_integrations-3.8}/tgshops_integrations/nocodb_connector/tables.py +0 -0
  18. {tgshops_integrations-3.6 → tgshops_integrations-3.8}/tgshops_integrations.egg-info/SOURCES.txt +0 -0
  19. {tgshops_integrations-3.6 → tgshops_integrations-3.8}/tgshops_integrations.egg-info/dependency_links.txt +0 -0
  20. {tgshops_integrations-3.6 → tgshops_integrations-3.8}/tgshops_integrations.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tgshops_integrations
3
- Version: 3.6
3
+ Version: 3.8
4
4
  Summary: Library is intended to provide the integration of the external service or CRM system with the TelegramShops/It allows to configure the relationship between NocoDB list of the products used further to display in the shop/As a resultss the products can be synchronized and updated uppon the request.
5
5
  Home-page: https://git.the-devs.com/virtual-shops/shop-system/shop-backend-integrations/integration-library/integration-library
6
6
  Author: Dimi Latoff
@@ -2,7 +2,7 @@ from setuptools import setup,find_packages
2
2
 
3
3
  setup(
4
4
  name='tgshops_integrations',
5
- version='3.6',
5
+ version='3.8',
6
6
  packages=find_packages(),
7
7
  install_requires=[
8
8
  # List your library's dependencies here
@@ -24,4 +24,7 @@ setup(
24
24
  'Operating System :: OS Independent',
25
25
  ],
26
26
  python_requires='>=3.10',
27
- )
27
+ )
28
+
29
+ # python3 setup.py sdist bdist_wheel
30
+ # twine upload dist/* --verbose
@@ -89,13 +89,15 @@ class CategoryManager(NocodbClient):
89
89
  properties_to_create = []
90
90
 
91
91
  for product in external_products:
92
- for num, product_property in enumerate(product.product_properties):
92
+ for num, product_property in enumerate(product.product_properties[:len(self.filter_buttons)]):
93
93
  if product_property not in categories_list:
94
- parent_id = (
95
- self.categories[self.filter_buttons[num]]
96
- if self.filter_buttons
97
- else self.categories[product.category_I_name[0]]
98
- )
94
+ # TODO: Needs restructuring
95
+ # parent_id = (
96
+ # self.categories[self.filter_buttons[num]]
97
+ # if self.filter_buttons
98
+ # else self.categories[product.category_I_name[0]]
99
+ # )
100
+ parent_id=0
99
101
  properties_to_create.append([product_property, parent_id])
100
102
  categories_list.append(product_property)
101
103
 
@@ -106,7 +108,7 @@ class CategoryManager(NocodbClient):
106
108
  for product_property, parent_id in properties_to_create:
107
109
  new_property = await self.create_product_category(
108
110
  table_id=self.categories_table,
109
- property_name=product_property,
111
+ category_name=product_property,
110
112
  category_id=new_id,
111
113
  table_name=PRODUCT_NAME_FIELD,
112
114
  )
@@ -124,8 +126,7 @@ class CategoryManager(NocodbClient):
124
126
  linked_column["fk_model_id"],
125
127
  child_id,
126
128
  linked_column["id"],
127
- parent_id,
128
- )
129
+ parent_id)
129
130
 
130
131
  async def unlink_categories(self, parent_id: int, child_id: int):
131
132
  metadata = await self.get_table_meta(self.categories_table)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tgshops-integrations
3
- Version: 3.6
3
+ Version: 3.8
4
4
  Summary: Library is intended to provide the integration of the external service or CRM system with the TelegramShops/It allows to configure the relationship between NocoDB list of the products used further to display in the shop/As a resultss the products can be synchronized and updated uppon the request.
5
5
  Home-page: https://git.the-devs.com/virtual-shops/shop-system/shop-backend-integrations/integration-library/integration-library
6
6
  Author: Dimi Latoff