Move the cogs into a subdir

This commit is contained in:
Marc Di Luzio 2024-08-13 22:42:52 +01:00
parent 93337ebde9
commit d3cdec3965
6 changed files with 4 additions and 4 deletions

View file

@ -21,7 +21,7 @@ def format_day(time: datetime) -> str:
return f"{day} {num}"
def format_list(list) -> str:
def format_list(list: list) -> str:
"""Format a list into a human readable format of foo, bar and bob"""
if len(list) > 1:
return f"{', '.join(list[:-1])} and {list[-1]}"