Take the biggest one rather than the smallest one.
This commit is contained in:
Родитель
a5c045df04
Коммит
fd5d1e92de
|
@ -230,7 +230,7 @@ class BlocklistItemTest(XMLAssertsMixin, BlocklistViewTest):
|
|||
|
||||
# Check that the blockID is the smallest
|
||||
assert item.getAttribute('blockID') == (
|
||||
'i%s' % str(first_created_details.id))
|
||||
'i%s' % str(secondly_created_details.id))
|
||||
|
||||
def test_item_os(self):
|
||||
item = self.dom(self.fx4_url).getElementsByTagName('emItem')[0]
|
||||
|
|
|
@ -117,7 +117,7 @@ def get_items(apiver=None, app=None, appver=None, groupby='guid'):
|
|||
rs[0].apps = [App(r.app_guid, r.app_min, r.app_max)
|
||||
for r in rs if r.app_guid]
|
||||
os = [r.os for r in rr if r.os]
|
||||
block_id = min([r.block_id for r in rows])
|
||||
block_id = max([r.block_id for r in rows])
|
||||
items[guid] = BlItem(rr, os[0] if os else None, rows[0].modified,
|
||||
block_id, prefs)
|
||||
details[guid] = sorted(rows, key=attrgetter('id'))[0]
|
||||
|
|
Загрузка…
Ссылка в новой задаче