0021-misc-fix-simplifiable-condition-pylint-error-56288.patch
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 |
- |