From f7fee666e65e1d56fb74aacbf797b5959ed2aecf Mon Sep 17 00:00:00 2001 From: Rostislav Orlovskyi Date: Fri, 28 Jun 2024 22:31:03 +0300 Subject: [PATCH] v1.2 --- db_to_xlsx.py | 4 ++-- requirements.txt | Bin 210 -> 238 bytes 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db_to_xlsx.py b/db_to_xlsx.py index e4855a6..4d9bc87 100644 --- a/db_to_xlsx.py +++ b/db_to_xlsx.py @@ -20,7 +20,7 @@ ws.title = "Sheet" # Увімкнення захисту листа з налаштуваннями -ws.protection.objects = False # Заборонити редагування об'єктів (наприклад, зображень) +ws.protection.objects = True # Блокування об'єктів ws.protection.scenarios = False ws.protection.formatCells = False ws.protection.formatColumns = False @@ -53,7 +53,7 @@ def add_to_file(product, row_num): ws.add_image(img, photo_coordinates) - # Блокування клітинки з назвою товару + # Блокування клітинки з назвою товару ws[photo_coordinates].protection = openpyxl.styles.Protection(locked=True) except requests.exceptions.HTTPError as http_err: diff --git a/requirements.txt b/requirements.txt index 5ebf193ed5ba986be9513b58d0bccc3dbcf68009..5095c267e8ccbc1686ad6a23ea848cdd4edac3e2 100644 GIT binary patch delta 35 mcmcb__>OVHC7A+-OokjF%x5TPumwUx1_K5?1|uLgU;qHKV+U~n delta 6 NcmaFIc!_bsB>)QC10?_e