Список групп обрезался до установленного в настройках значения
parent
2a34266fe3
commit
392a8a2603
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<addon id="kodi-vk.inpos.ru" version="1.2.2" name="VK Add-on" provider-name="inpos">
|
<addon id="kodi-vk.inpos.ru" version="1.2.3" name="VK Add-on" provider-name="inpos">
|
||||||
<requires>
|
<requires>
|
||||||
<import addon="xbmc.python" version="2.14.0"/>
|
<import addon="xbmc.python" version="2.14.0"/>
|
||||||
<import addon="script.module.vk"/>
|
<import addon="script.module.vk"/>
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
v1.2.3 (2017-07-22)
|
||||||
|
- Исправлено: Список групп обрезался до установленного в настройках значения
|
||||||
|
|
||||||
v1.2.2 (2017-06-03)
|
v1.2.2 (2017-06-03)
|
||||||
- Теперь, после смены пароля на сайте, дополнение запрашивает авторизацию
|
- Теперь, после смены пароля на сайте, дополнение запрашивает авторизацию
|
||||||
|
|
||||||
|
|
10
default.py
10
default.py
|
@ -132,7 +132,7 @@ class Group(object):
|
||||||
fields = 'first_name,last_name,photo_50,photo_100,photo_200',
|
fields = 'first_name,last_name,photo_50,photo_100,photo_200',
|
||||||
count = page_items)
|
count = page_items)
|
||||||
count = m['count']
|
count = m['count']
|
||||||
pages = ceil(count / page_items)
|
pages = ceil(float(count) / float(page_items))
|
||||||
l = []
|
l = []
|
||||||
for i in m['items']:
|
for i in m['items']:
|
||||||
member = User(i['id'], self.conn)
|
member = User(i['id'], self.conn)
|
||||||
|
@ -226,7 +226,7 @@ class User(object):
|
||||||
fields = 'first_name,last_name,photo_50,photo_100,photo_200',
|
fields = 'first_name,last_name,photo_50,photo_100,photo_200',
|
||||||
order = order)
|
order = order)
|
||||||
count = f['count']
|
count = f['count']
|
||||||
pages = ceil(count / page_items)
|
pages = ceil(float(count) / float(page_items))
|
||||||
l = []
|
l = []
|
||||||
for i in f['items']:
|
for i in f['items']:
|
||||||
u = User(i['id'], self.conn)
|
u = User(i['id'], self.conn)
|
||||||
|
@ -239,7 +239,7 @@ class User(object):
|
||||||
count = page_items,
|
count = page_items,
|
||||||
fields = 'first_name,last_name,photo_50,photo_100,photo_200')
|
fields = 'first_name,last_name,photo_50,photo_100,photo_200')
|
||||||
count = usr['count']
|
count = usr['count']
|
||||||
pages = ceil(count / page_items)
|
pages = ceil(float(count) / float(page_items))
|
||||||
l = []
|
l = []
|
||||||
for i in usr['items']:
|
for i in usr['items']:
|
||||||
u = User(i['id'], self.conn)
|
u = User(i['id'], self.conn)
|
||||||
|
@ -252,7 +252,7 @@ class User(object):
|
||||||
count = page_items,
|
count = page_items,
|
||||||
extended = 1)
|
extended = 1)
|
||||||
count = gr['count']
|
count = gr['count']
|
||||||
pages = ceil(count / page_items)
|
pages = ceil(float(count) / float(page_items))
|
||||||
l = []
|
l = []
|
||||||
for i in gr['items']:
|
for i in gr['items']:
|
||||||
if i['is_closed'] > 0 and i['is_member'] == 0: continue
|
if i['is_closed'] > 0 and i['is_member'] == 0: continue
|
||||||
|
@ -265,7 +265,7 @@ class User(object):
|
||||||
offset = ((page_items * page) - page_items),
|
offset = ((page_items * page) - page_items),
|
||||||
count = page_items)
|
count = page_items)
|
||||||
count = gr['count']
|
count = gr['count']
|
||||||
pages = ceil(count / page_items)
|
pages = ceil(float(count) / float(page_items))
|
||||||
l = []
|
l = []
|
||||||
for i in gr['items']:
|
for i in gr['items']:
|
||||||
if i['is_closed'] > 0 and i['is_member'] == 0: continue
|
if i['is_closed'] > 0 and i['is_member'] == 0: continue
|
||||||
|
|
Loading…
Reference in New Issue