From 76d307d97dfc15b46c928ed62279f0a25146431c Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Sep 23 2022 10:01:13 +0000 Subject: PR#3492: Fix arch filter in list of hosts webUI Merges #3492 https://pagure.io/koji/pull-request/3492 Fixes: #3491 https://pagure.io/koji/issue/3491 filter arches returns wrong list of hosts on webUI --- diff --git a/www/kojiweb/index.py b/www/kojiweb/index.py index 03f6d24..bdb3841 100644 --- a/www/kojiweb/index.py +++ b/www/kojiweb/index.py @@ -1685,7 +1685,7 @@ def hosts(environ, state='enabled', start=None, order='name', ready='all', chann if arch != 'all': arch = _validate_arch(arch) if arch: - hosts = [x for x in hosts if arch in x['arches']] + hosts = [x for x in hosts if arch in x['arches'].split(' ')] else: arch = 'all' values['arch'] = arch