From 6a3fa00f72e87d930f43b0d5b42f4d6701d28839 Mon Sep 17 00:00:00 2001 From: MikiEremiki Date: Mon, 5 Feb 2024 22:38:56 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=82=D0=B5=D0=BA=D1=81=D1=82=D0=B0?= =?UTF-8?q?=20=D0=B8=D0=B7=20=D1=81=D1=82=D0=BE=D0=BB=D0=B1=D1=86=D0=B0=20?= =?UTF-8?q?=D1=81=20=D0=BF=D1=80=D0=B8=D0=BC=D0=B5=D1=87=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=D0=BC=20=D0=B2=20=D0=BA=D0=BB=D0=B8=D0=B5=D0=BD=D1=82?= =?UTF-8?q?=D1=81=D0=BA=D0=BE=D0=B9=20=D0=B1=D0=B0=D0=B7=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Если значение пустое, то оно не загружалось и получали ошибку index error --- src/db/db_googlesheets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/db_googlesheets.py b/src/db/db_googlesheets.py index fe90ef4..a2d921d 100644 --- a/src/db/db_googlesheets.py +++ b/src/db/db_googlesheets.py @@ -302,7 +302,7 @@ def load_clients_data( dict_column_name, len_column = get_column_info('База клиентов_') sheet = ( RANGE_NAME['База клиентов_'] + - f'R1C1:R{len(first_colum)}C{len_column}' + f'R1C1:R{len(first_colum)}C{len_column+1}' ) data = get_data_from_spreadsheet(sheet)