tgshops-integrations 4.0__tar.gz → 4.2__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.
Files changed (20) hide show
  1. {tgshops_integrations-4.0 → tgshops_integrations-4.2}/PKG-INFO +1 -1
  2. {tgshops_integrations-4.0 → tgshops_integrations-4.2}/setup.py +1 -1
  3. {tgshops_integrations-4.0 → tgshops_integrations-4.2}/tgshops_integrations/nocodb_connector/categories_management.py +5 -5
  4. tgshops_integrations-4.0/tgshops_integrations/nocodb_connector/products_management.py.py → tgshops_integrations-4.2/tgshops_integrations/nocodb_connector/products_management.py +1 -1
  5. {tgshops_integrations-4.0 → tgshops_integrations-4.2}/tgshops_integrations.egg-info/PKG-INFO +1 -1
  6. {tgshops_integrations-4.0 → tgshops_integrations-4.2}/tgshops_integrations.egg-info/SOURCES.txt +1 -1
  7. {tgshops_integrations-4.0 → tgshops_integrations-4.2}/README.md +0 -0
  8. {tgshops_integrations-4.0 → tgshops_integrations-4.2}/setup.cfg +0 -0
  9. {tgshops_integrations-4.0 → tgshops_integrations-4.2}/tgshops_integrations/__init__.py +0 -0
  10. {tgshops_integrations-4.0 → tgshops_integrations-4.2}/tgshops_integrations/middlewares/__init__.py +0 -0
  11. {tgshops_integrations-4.0 → tgshops_integrations-4.2}/tgshops_integrations/middlewares/gateway.py +0 -0
  12. {tgshops_integrations-4.0 → tgshops_integrations-4.2}/tgshops_integrations/models/__init__.py +0 -0
  13. {tgshops_integrations-4.0 → tgshops_integrations-4.2}/tgshops_integrations/models/categories.py +0 -0
  14. {tgshops_integrations-4.0 → tgshops_integrations-4.2}/tgshops_integrations/models/products.py +0 -0
  15. {tgshops_integrations-4.0 → tgshops_integrations-4.2}/tgshops_integrations/nocodb_connector/__init__.py +0 -0
  16. {tgshops_integrations-4.0 → tgshops_integrations-4.2}/tgshops_integrations/nocodb_connector/client.py +0 -0
  17. {tgshops_integrations-4.0 → tgshops_integrations-4.2}/tgshops_integrations/nocodb_connector/model_mapping.py +0 -0
  18. {tgshops_integrations-4.0 → tgshops_integrations-4.2}/tgshops_integrations/nocodb_connector/tables.py +0 -0
  19. {tgshops_integrations-4.0 → tgshops_integrations-4.2}/tgshops_integrations.egg-info/dependency_links.txt +0 -0
  20. {tgshops_integrations-4.0 → tgshops_integrations-4.2}/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: 4.0
3
+ Version: 4.2
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='4.0',
5
+ version='4.2',
6
6
  packages=find_packages(),
7
7
  install_requires=[
8
8
  # List your library's dependencies here
@@ -1,11 +1,11 @@
1
1
  from typing import List
2
2
  from loguru import logger
3
3
  from aiocache import cached
4
- from models.categories import CategoryModel, CategoryResponseModel, CategoryListResponseModel
5
- from models.products import ProductModel
6
- from services.nocodb_connector.client import custom_key_builder, NocodbClient
7
- from services.nocodb_connector.model_mapping import (
8
- CATEGORY_IMAGE_FIELD,
4
+ from tgshops_integrations.models.categories import CategoryModel, CategoryResponseModel, CategoryListResponseModel
5
+ from tgshops_integrations.models.products import ProductModel
6
+ from tgshops_integrations.nocodb_connector.client import custom_key_builder, NocodbClient
7
+ from tgshops_integrations.nocodb_connector.model_mapping import (
8
+ # CATEGORY_IMAGE_FIELD,
9
9
  CATEGORY_NAME_FIELD,
10
10
  CATEGORY_PARENT_FIELD,
11
11
  CATEGORY_PARENT_ID_FIELD,
@@ -34,7 +34,7 @@ class ProductManager(NocodbClient):
34
34
  if special_attributes:
35
35
  hash_string = ''.join(attr.description for attr in product.extra_attributes if attr.name.endswith('*'))
36
36
  else:
37
- hash_string = f"{product.external_id}{product.price}{sorted(product.product_properties)}{product.name}{product.description}"
37
+ hash_string = f"{product.external_id}{product.price}{sorted(product.product_properties)}{product.name}{product.description}{product.stock_qty}"
38
38
 
39
39
  return hashlib.sha256(hash_string.encode()).hexdigest()
40
40
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tgshops-integrations
3
- Version: 4.0
3
+ Version: 4.2
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
@@ -14,5 +14,5 @@ tgshops_integrations/nocodb_connector/__init__.py
14
14
  tgshops_integrations/nocodb_connector/categories_management.py
15
15
  tgshops_integrations/nocodb_connector/client.py
16
16
  tgshops_integrations/nocodb_connector/model_mapping.py
17
- tgshops_integrations/nocodb_connector/products_management.py.py
17
+ tgshops_integrations/nocodb_connector/products_management.py
18
18
  tgshops_integrations/nocodb_connector/tables.py