From 392a8a260384267fc0581a7c97480acbdf92b650 Mon Sep 17 00:00:00 2001 From: inpos Date: Sat, 22 Jul 2017 22:09:00 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BF=D0=B8=D1=81=D0=BE=D0=BA=20=D0=B3?= =?UTF-8?q?=D1=80=D1=83=D0=BF=D0=BF=20=D0=BE=D0=B1=D1=80=D0=B5=D0=B7=D0=B0?= =?UTF-8?q?=D0=BB=D1=81=D1=8F=20=D0=B4=D0=BE=20=D1=83=D1=81=D1=82=D0=B0?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=BD=D0=BE=D0=B3=D0=BE=20?= =?UTF-8?q?=D0=B2=20=D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9=D0=BA=D0=B0?= =?UTF-8?q?=D1=85=20=D0=B7=D0=BD=D0=B0=D1=87=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addon.xml | 2 +- changelog.txt | 3 +++ default.py | 10 +++++----- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/addon.xml b/addon.xml index a2af6b2..601fa97 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + diff --git a/changelog.txt b/changelog.txt index 8d7478c..7ecf8f4 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +v1.2.3 (2017-07-22) +- Исправлено: Список групп обрезался до установленного в настройках значения + v1.2.2 (2017-06-03) - Теперь, после смены пароля на сайте, дополнение запрашивает авторизацию diff --git a/default.py b/default.py index 6b16549..9c5ad12 100644 --- a/default.py +++ b/default.py @@ -132,7 +132,7 @@ class Group(object): fields = 'first_name,last_name,photo_50,photo_100,photo_200', count = page_items) count = m['count'] - pages = ceil(count / page_items) + pages = ceil(float(count) / float(page_items)) l = [] for i in m['items']: member = User(i['id'], self.conn) @@ -226,7 +226,7 @@ class User(object): fields = 'first_name,last_name,photo_50,photo_100,photo_200', order = order) count = f['count'] - pages = ceil(count / page_items) + pages = ceil(float(count) / float(page_items)) l = [] for i in f['items']: u = User(i['id'], self.conn) @@ -239,7 +239,7 @@ class User(object): count = page_items, fields = 'first_name,last_name,photo_50,photo_100,photo_200') count = usr['count'] - pages = ceil(count / page_items) + pages = ceil(float(count) / float(page_items)) l = [] for i in usr['items']: u = User(i['id'], self.conn) @@ -252,7 +252,7 @@ class User(object): count = page_items, extended = 1) count = gr['count'] - pages = ceil(count / page_items) + pages = ceil(float(count) / float(page_items)) l = [] for i in gr['items']: if i['is_closed'] > 0 and i['is_member'] == 0: continue @@ -265,7 +265,7 @@ class User(object): offset = ((page_items * page) - page_items), count = page_items) count = gr['count'] - pages = ceil(count / page_items) + pages = ceil(float(count) / float(page_items)) l = [] for i in gr['items']: if i['is_closed'] > 0 and i['is_member'] == 0: continue