(port_list)
| 850 | def presence_bar(score): |
| 851 | filled = min(20, max(0, int(score / 5))) |
| 852 | empty = 20 - filled |
| 853 | if score >= 90: |
| 854 | color = GREEN |
| 855 | elif score >= 70: |
| 856 | color = YELLOW |
| 857 | else: |
| 858 | color = CYAN |
| 859 | return "[" + ccolor(color, "█" * filled) + ccolor(DIM, "░" * empty) + "] " + ccolor(color, f"{score}%") |
| 860 |
no outgoing calls
no test coverage detected