import logging # Example player data # player_data = { # "first_name": "Fábio", # "second_name": "Ferreira Vieira", # "web_name": "Fábio Vieira", # "now_cost": 55, # "status": "d", # Example status: 'd' means doubtful # "total_points": 24, # "team": 1, # "news": "Hip injury - 75% chance of playing", # "goals_scored": 1, # "assists": 3, # "clean_sheets": 1, # "minutes": 290, # "photo": "438098.jpg" # } class FPLPlayer: # Function to map status to a human-readable format and style def get_status_class(status): if status == 'a': return 'Available', 'color: green;' elif status == 'd': return 'Doubtful', 'color: orange;' elif status == 'i': return 'Injured', 'color: red;' else: return 'Unknown', 'color: grey;'