2024-01-15 02:07:06 -05:00
|
|
|
from typing import Union
|
|
|
|
|
2024-01-13 10:44:08 -05:00
|
|
|
def get_bool_emoji(value: bool) -> str:
|
|
|
|
"""Returns a unicode emoji based on a boolean value."""
|
|
|
|
if value is True:
|
|
|
|
return "\N{WHITE HEAVY CHECK MARK}"
|
|
|
|
if value is False:
|
|
|
|
return "\N{NO ENTRY SIGN}"
|
2024-01-15 06:49:20 -05:00
|
|
|
return "\N{BLACK QUESTION MARK ORNAMENT}\N{VARIATION SELECTOR-16}"
|
2024-01-15 02:07:06 -05:00
|
|
|
|
|
|
|
def get_pagesize_str(value: Union[int, None]) -> str:
|
|
|
|
"""Returns a string based on a pagesize value."""
|
|
|
|
if value is None:
|
|
|
|
return "\N{BLACK QUESTION MARK ORNAMENT}\N{VARIATION SELECTOR-16}"
|
|
|
|
return str(value) + " cases per page"
|