tgshops-integrations 3.6__py3-none-any.whl → 3.7__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tgshops_integrations/nocodb_connector/categories_management.py +9 -8
- {tgshops_integrations-3.6.dist-info → tgshops_integrations-3.7.dist-info}/METADATA +1 -1
- {tgshops_integrations-3.6.dist-info → tgshops_integrations-3.7.dist-info}/RECORD +5 -5
- {tgshops_integrations-3.6.dist-info → tgshops_integrations-3.7.dist-info}/WHEEL +0 -0
- {tgshops_integrations-3.6.dist-info → tgshops_integrations-3.7.dist-info}/top_level.txt +0 -0
@@ -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
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
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
|
|
@@ -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.
|
3
|
+
Version: 3.7
|
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=czDL9o-cy4w28BsTqJD3Jug3mJL75TiH0rtC99KJ9bc,6748
|
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
11
|
tgshops_integrations/nocodb_connector/products_management.py,sha256=uo0b3azbO7is4PUXuQJ1Ode7T9IVnUaAFk9gXcVOZHI,6068
|
12
12
|
tgshops_integrations/nocodb_connector/tables.py,sha256=ha_QXZXd93mht0fR5E1nM0wUpz1ePon-pIdO2HI67l8,356
|
13
|
-
tgshops_integrations-3.
|
14
|
-
tgshops_integrations-3.
|
15
|
-
tgshops_integrations-3.
|
16
|
-
tgshops_integrations-3.
|
13
|
+
tgshops_integrations-3.7.dist-info/METADATA,sha256=4T3ijjv0Hhl2o8e3MqlkXCb9eeVQdx0O6InkDxdlF2s,2844
|
14
|
+
tgshops_integrations-3.7.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
15
|
+
tgshops_integrations-3.7.dist-info/top_level.txt,sha256=HFNtxqDpzmlF4ZLnMiwhbU7pOa_YozxU2zBl0bnUmcY,21
|
16
|
+
tgshops_integrations-3.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|