From 3adfa46a6c6ad4c847537f150a107f3bc3ecd77e Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Sun, 5 Jun 2022 14:59:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D1=8F?= =?UTF-8?q?=D0=B5=D1=82=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BE=20=D0=BA=D0=BE=D0=BB=D0=B8=D1=87=D0=B5=D1=81?= =?UTF-8?q?=D1=82=D0=B2=D0=B5=20=D0=BA=D0=BE=D0=BD=D1=82=D0=B0=D0=BA=D1=82?= =?UTF-8?q?=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index d1da7dd..ad7ad4b 100644 --- a/main.py +++ b/main.py @@ -127,7 +127,10 @@ def main(): "etag": person['etag'] } - if (len(batch_request['contacts']) > 0): + contacts_len = len(batch_request['contacts']) + + if (contacts_len > 0): + print('Количество контактов для обновления: {}'.format(contacts_len)) print('Обновляем контакты...') service.people().batchUpdateContacts(body = batch_request).execute() print('Обновление завершено!')