tgshops-integrations 1.7__tar.gz → 1.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-1.7 → tgshops_integrations-1.8}/PKG-INFO +1 -1
  2. {tgshops_integrations-1.7 → tgshops_integrations-1.8}/setup.py +1 -1
  3. {tgshops_integrations-1.7 → tgshops_integrations-1.8}/tgshops_integrations/middlewares/gateway.py +2 -2
  4. {tgshops_integrations-1.7 → tgshops_integrations-1.8}/tgshops_integrations/nocodb_connector/model_mapping.py +1 -0
  5. {tgshops_integrations-1.7 → tgshops_integrations-1.8}/tgshops_integrations.egg-info/PKG-INFO +1 -1
  6. {tgshops_integrations-1.7 → tgshops_integrations-1.8}/README.md +0 -0
  7. {tgshops_integrations-1.7 → tgshops_integrations-1.8}/setup.cfg +0 -0
  8. {tgshops_integrations-1.7 → tgshops_integrations-1.8}/tgshops_integrations/__init__.py +0 -0
  9. {tgshops_integrations-1.7 → tgshops_integrations-1.8}/tgshops_integrations/middlewares/__init__.py +0 -0
  10. {tgshops_integrations-1.7 → tgshops_integrations-1.8}/tgshops_integrations/models/__init__.py +0 -0
  11. {tgshops_integrations-1.7 → tgshops_integrations-1.8}/tgshops_integrations/models/categories.py +0 -0
  12. {tgshops_integrations-1.7 → tgshops_integrations-1.8}/tgshops_integrations/models/products.py +0 -0
  13. {tgshops_integrations-1.7 → tgshops_integrations-1.8}/tgshops_integrations/nocodb_connector/__init__.py +0 -0
  14. {tgshops_integrations-1.7 → tgshops_integrations-1.8}/tgshops_integrations/nocodb_connector/categories.py +0 -0
  15. {tgshops_integrations-1.7 → tgshops_integrations-1.8}/tgshops_integrations/nocodb_connector/client.py +0 -0
  16. {tgshops_integrations-1.7 → tgshops_integrations-1.8}/tgshops_integrations/nocodb_connector/products.py +0 -0
  17. {tgshops_integrations-1.7 → tgshops_integrations-1.8}/tgshops_integrations/nocodb_connector/tables.py +0 -0
  18. {tgshops_integrations-1.7 → tgshops_integrations-1.8}/tgshops_integrations.egg-info/SOURCES.txt +0 -0
  19. {tgshops_integrations-1.7 → tgshops_integrations-1.8}/tgshops_integrations.egg-info/dependency_links.txt +0 -0
  20. {tgshops_integrations-1.7 → tgshops_integrations-1.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: 1.7
3
+ Version: 1.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='1.7',
5
+ version='1.8',
6
6
  packages=find_packages(),
7
7
  install_requires=[
8
8
  # List your library's dependencies here
@@ -8,7 +8,7 @@ from tgshops_integrations.nocodb_connector.client import NocodbClient
8
8
 
9
9
  from tgshops_integrations.nocodb_connector.model_mapping import dump_product_data,dump_product_data_with_check, get_pagination_info, ID_FIELD, \
10
10
  parse_product_data, PRODUCT_CATEGORY_ID_LOOKUP_FIELD, PRODUCT_NAME_FIELD, PRODUCT_PRICE_FIELD, \
11
- PRODUCT_STOCK_FIELD
11
+ PRODUCT_STOCK_FIELD,PRODUCT_IMAGES_LOOKUP_FIELD
12
12
 
13
13
  from tgshops_integrations.nocodb_connector.categories import CategoryManager
14
14
  from tgshops_integrations.nocodb_connector.products import ProductManager
@@ -51,7 +51,7 @@ class Gateway(NocodbClient):
51
51
  external_id = data.pop("ID")
52
52
  metadata = await self.get_table_meta(self.tables_list["Products"])
53
53
  images_column=[column["id"] for column in metadata["columns"] if column["column_name"] == "Images"][0]
54
- data["ExternalImages"]=[image['title'] for image in data['Images']]
54
+ data[PRODUCT_IMAGES_LOOKUP_FIELD]=[image['title'] for image in data['Images']]
55
55
 
56
56
  for num,item in enumerate(data['Images']):
57
57
  url_before=item['url']
@@ -53,6 +53,7 @@ def initialize_model_mapping(config_path):
53
53
  PRODUCT_IMAGE_FIELD = config.PRODUCT_IMAGE_FIELD
54
54
  PRODUCT_DISCOUNT_PRICE_FIELD = config.PRODUCT_DISCOUNT_PRICE_FIELD
55
55
  PRODUCT_CATEGORY_ID_LOOKUP_FIELD = config.PRODUCT_CATEGORY_ID_LOOKUP_FIELD
56
+ PRODUCT_IMAGES_LOOKUP_FIELD = config.PRODUCT_IMAGES_LOOKUP_FIELD
56
57
  PRODUCT_REQUIRED_OPTIONS_FIELD = config.PRODUCT_REQUIRED_OPTIONS_FIELD
57
58
  PRODUCT_CATEGORIES_EXTRA_OPTIONS_FIELD = config.PRODUCT_CATEGORIES_EXTRA_OPTIONS_FIELD
58
59
  PRODUCT_CATEGORIES_EXTRA_OPTION_NAMES_FIELD = config.PRODUCT_CATEGORIES_EXTRA_OPTION_NAMES_FIELD
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tgshops-integrations
3
- Version: 1.7
3
+ Version: 1.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