tgshops-integrations 1.5__tar.gz → 1.6__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {tgshops_integrations-1.5 → tgshops_integrations-1.6}/PKG-INFO +1 -1
- {tgshops_integrations-1.5 → tgshops_integrations-1.6}/setup.py +1 -1
- {tgshops_integrations-1.5 → tgshops_integrations-1.6}/tgshops_integrations/nocodb_connector/client.py +6 -4
- {tgshops_integrations-1.5 → tgshops_integrations-1.6}/tgshops_integrations.egg-info/PKG-INFO +1 -1
- {tgshops_integrations-1.5 → tgshops_integrations-1.6}/README.md +0 -0
- {tgshops_integrations-1.5 → tgshops_integrations-1.6}/setup.cfg +0 -0
- {tgshops_integrations-1.5 → tgshops_integrations-1.6}/tgshops_integrations/__init__.py +0 -0
- {tgshops_integrations-1.5 → tgshops_integrations-1.6}/tgshops_integrations/middlewares/__init__.py +0 -0
- {tgshops_integrations-1.5 → tgshops_integrations-1.6}/tgshops_integrations/middlewares/gateway.py +0 -0
- {tgshops_integrations-1.5 → tgshops_integrations-1.6}/tgshops_integrations/models/__init__.py +0 -0
- {tgshops_integrations-1.5 → tgshops_integrations-1.6}/tgshops_integrations/models/categories.py +0 -0
- {tgshops_integrations-1.5 → tgshops_integrations-1.6}/tgshops_integrations/models/products.py +0 -0
- {tgshops_integrations-1.5 → tgshops_integrations-1.6}/tgshops_integrations/nocodb_connector/__init__.py +0 -0
- {tgshops_integrations-1.5 → tgshops_integrations-1.6}/tgshops_integrations/nocodb_connector/categories.py +0 -0
- {tgshops_integrations-1.5 → tgshops_integrations-1.6}/tgshops_integrations/nocodb_connector/model_mapping.py +0 -0
- {tgshops_integrations-1.5 → tgshops_integrations-1.6}/tgshops_integrations/nocodb_connector/products.py +0 -0
- {tgshops_integrations-1.5 → tgshops_integrations-1.6}/tgshops_integrations/nocodb_connector/tables.py +0 -0
- {tgshops_integrations-1.5 → tgshops_integrations-1.6}/tgshops_integrations.egg-info/SOURCES.txt +0 -0
- {tgshops_integrations-1.5 → tgshops_integrations-1.6}/tgshops_integrations.egg-info/dependency_links.txt +0 -0
- {tgshops_integrations-1.5 → tgshops_integrations-1.6}/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.
|
3
|
+
Version: 1.6
|
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
|
@@ -253,8 +253,12 @@ class NocodbClient:
|
|
253
253
|
source_column_id -ID of source column
|
254
254
|
linked_record_id - ID of linked record
|
255
255
|
"""
|
256
|
-
|
257
|
-
|
256
|
+
try:
|
257
|
+
response = requests.get(image_url)
|
258
|
+
except:
|
259
|
+
logger.info(f"Error with loading image via url - {image_url}")
|
260
|
+
return ""
|
261
|
+
|
258
262
|
if response.status_code == 200:
|
259
263
|
file = io.BytesIO(response.content)
|
260
264
|
else:
|
@@ -263,9 +267,7 @@ class NocodbClient:
|
|
263
267
|
file_size = file.getbuffer().nbytes
|
264
268
|
|
265
269
|
if file_size:
|
266
|
-
|
267
270
|
files = {'file': (image_name, file, 'image/jpeg')}
|
268
|
-
|
269
271
|
url = f"{self.NOCODB_HOST.replace('/api/v2', '/api/v1')}/db/storage/upload?path=noco/{source_column_id}/{product_table_name}/{images_column_id}"
|
270
272
|
timeout = httpx.Timeout(100.0)
|
271
273
|
response = await self.httpx_client.post(url,files=files,headers=self.httpx_client.headers,timeout=timeout)
|
{tgshops_integrations-1.5 → tgshops_integrations-1.6}/tgshops_integrations.egg-info/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tgshops-integrations
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.6
|
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
|
File without changes
|
File without changes
|
File without changes
|
{tgshops_integrations-1.5 → tgshops_integrations-1.6}/tgshops_integrations/middlewares/__init__.py
RENAMED
File without changes
|
{tgshops_integrations-1.5 → tgshops_integrations-1.6}/tgshops_integrations/middlewares/gateway.py
RENAMED
File without changes
|
{tgshops_integrations-1.5 → tgshops_integrations-1.6}/tgshops_integrations/models/__init__.py
RENAMED
File without changes
|
{tgshops_integrations-1.5 → tgshops_integrations-1.6}/tgshops_integrations/models/categories.py
RENAMED
File without changes
|
{tgshops_integrations-1.5 → tgshops_integrations-1.6}/tgshops_integrations/models/products.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{tgshops_integrations-1.5 → tgshops_integrations-1.6}/tgshops_integrations.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{tgshops_integrations-1.5 → tgshops_integrations-1.6}/tgshops_integrations.egg-info/top_level.txt
RENAMED
File without changes
|