From c3b5ec3fb8836f391383b78d85f6eeb104913be5 Mon Sep 17 00:00:00 2001 From: Martin Riese Date: Tue, 19 Sep 2023 15:45:15 -0500 Subject: [PATCH] use any --- corehq/apps/app_manager/suite_xml/features/case_tiles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/corehq/apps/app_manager/suite_xml/features/case_tiles.py b/corehq/apps/app_manager/suite_xml/features/case_tiles.py index bb1db1478b6a..81d58213c907 100644 --- a/corehq/apps/app_manager/suite_xml/features/case_tiles.py +++ b/corehq/apps/app_manager/suite_xml/features/case_tiles.py @@ -88,8 +88,8 @@ def build_case_tile_detail(self): for column_info in self.detail_column_infos: # column_info is an instance of DetailColumnInfo named tuple. style = None - if column_info.column.grid_x is not None or column_info.column.grid_y is not None \ - or column_info.column.height is not None or column_info.column.width is not None: + if any(field is not None for field in [column_info.column.grid_x, column_info.column.grid_y, + column_info.column.height, column_info.column.width]): style = Style(grid_x=column_info.column.grid_x, grid_y=column_info.column.grid_y, grid_height=column_info.column.height, grid_width=column_info.column.width, horz_align=column_info.column.horizontal_align,