Projet

Général

Profil

0021-misc-fix-simplifiable-condition-pylint-error-56288.patch

Lauréline Guérin, 30 août 2021 17:54

Télécharger (963 octets)

Voir les différences:

Subject: [PATCH 21/31] misc: fix simplifiable-condition pylint error (#56288)

 combo/apps/wcs/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
combo/apps/wcs/models.py
443 443
    def get_api_url_for_site(self, context, wcs_slug):
444 444
        url = self.get_api_url(context)
445 445

  
446
        if self.categories and self.categories.get('data') or []:
446
        if self.categories and self.categories.get('data'):
447 447
            categories_by_site = collections.defaultdict(list)
448 448
            for category in self.categories['data']:
449 449
                key, slug = category.split(':')
450
-