diff --git a/betfairviz/__init__.py b/betfairviz/__init__.py index 720a960..f217d9d 100644 --- a/betfairviz/__init__.py +++ b/betfairviz/__init__.py @@ -5272,12 +5272,13 @@ def _create_market_book_table( """ for runner in market_book['marketDefinition']['runners']: - is_non_runner = runner['status'] == 'REMOVED' tokens = [str(runner['id'])] if show_runner_names and 'name' in runner: tokens.append(runner['name']) - if is_non_runner: + if runner['status'] == 'REMOVED': tokens.append('Non Runner') + elif runner['status'] == 'WINNER': + tokens.append('Winner') runner_name = ' - '.join(tokens) html += '' html += f"""