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