From 5f32c853313b7c0a5a79b83ab1391fe4abfb7878 Mon Sep 17 00:00:00 2001 From: Alexeev Nickolay Date: Sat, 5 Sep 2020 22:57:37 +0300 Subject: [PATCH] (fix) department info --- yandex_connect/directory.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yandex_connect/directory.py b/yandex_connect/directory.py index 197fa39..21ecedb 100644 --- a/yandex_connect/directory.py +++ b/yandex_connect/directory.py @@ -241,13 +241,14 @@ class YandexConnectDirectory(YandexConnectBase): """ return self.list_full(self.department_list, 'name', **inspect_args_func(currentframe())) - def department_info(self, department_id): + def department_info(self, department_id, fields=None): """ Получение информации об отделе :param department_id: ID + :param fields: поля, по умолчанию - id :return: yandex request dict """ - return self.request('departments/%s' % department_id, method='get') + return self.request('departments/%s' % department_id, inspect_args_func(currentframe()), method='get') def department_add(self, name, label, description=None, head_id=None, parent_id=1): """