tgshops-integrations 4.0__py3-none-any.whl → 4.2__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.
- tgshops_integrations/nocodb_connector/categories_management.py +5 -5
- tgshops_integrations/nocodb_connector/{products_management.py.py → products_management.py} +1 -1
- {tgshops_integrations-4.0.dist-info → tgshops_integrations-4.2.dist-info}/METADATA +1 -1
- {tgshops_integrations-4.0.dist-info → tgshops_integrations-4.2.dist-info}/RECORD +6 -6
- {tgshops_integrations-4.0.dist-info → tgshops_integrations-4.2.dist-info}/WHEEL +0 -0
- {tgshops_integrations-4.0.dist-info → tgshops_integrations-4.2.dist-info}/top_level.txt +0 -0
@@ -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
|
7
|
-
from
|
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.
|
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
|
@@ -5,12 +5,12 @@ tgshops_integrations/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
|
|
5
5
|
tgshops_integrations/models/categories.py,sha256=EG6C8g5dOfXB2MH-vtqH13aqB7_VyOobY2FHpDb-fsY,977
|
6
6
|
tgshops_integrations/models/products.py,sha256=4XC6fyC91TAWj5oaX0A26kT_UizZIGaf4qyrVv9lPpQ,1403
|
7
7
|
tgshops_integrations/nocodb_connector/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
|
-
tgshops_integrations/nocodb_connector/categories_management.py,sha256=
|
8
|
+
tgshops_integrations/nocodb_connector/categories_management.py,sha256=w2BygSOEAQcyRMvszttsRDldP2G2HN2YBlm2MjdN1HE,7481
|
9
9
|
tgshops_integrations/nocodb_connector/client.py,sha256=U2rNozjluWVul-VZroQW-8b2j6nEtKrhOkFMz1L8KmI,12022
|
10
10
|
tgshops_integrations/nocodb_connector/model_mapping.py,sha256=UY6QHCba8o8J28duCgAzx95agGlE1pLagkNdZLV5nro,8719
|
11
|
-
tgshops_integrations/nocodb_connector/products_management.py
|
11
|
+
tgshops_integrations/nocodb_connector/products_management.py,sha256=GfxD9nuL4ixVK4wfvITvwYHXippL1Gqfl9un8fS70Ic,6187
|
12
12
|
tgshops_integrations/nocodb_connector/tables.py,sha256=ha_QXZXd93mht0fR5E1nM0wUpz1ePon-pIdO2HI67l8,356
|
13
|
-
tgshops_integrations-4.
|
14
|
-
tgshops_integrations-4.
|
15
|
-
tgshops_integrations-4.
|
16
|
-
tgshops_integrations-4.
|
13
|
+
tgshops_integrations-4.2.dist-info/METADATA,sha256=L_ljhaqjzNAoYFtZ6IpPYbKvhh52ym_zMUh1tDPQAOA,2844
|
14
|
+
tgshops_integrations-4.2.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
15
|
+
tgshops_integrations-4.2.dist-info/top_level.txt,sha256=HFNtxqDpzmlF4ZLnMiwhbU7pOa_YozxU2zBl0bnUmcY,21
|
16
|
+
tgshops_integrations-4.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|