diff --git a/movie_bet_bot/models/movies/movies.py b/movie_bet_bot/models/movies/movies.py index 57ac2e1..67277ce 100644 --- a/movie_bet_bot/models/movies/movies.py +++ b/movie_bet_bot/models/movies/movies.py @@ -539,7 +539,7 @@ def to_standings_image_html( # add 175px to height of image per member with film update html_height += 175 image_html = images.build_html_standings_block( - time=self.time_last_update.strftime("%m/%d %H:%M"), + title=f"Standings as of {self.time_last_update.strftime('%m/%d %H:%M')}", members=html_members, updates=html_updates, show_update=show_last_update, diff --git a/movie_bet_bot/utils/constants.py b/movie_bet_bot/utils/constants.py index f10ddb9..1f5f329 100644 --- a/movie_bet_bot/utils/constants.py +++ b/movie_bet_bot/utils/constants.py @@ -146,7 +146,7 @@ {head} -

Standings as of {time}

+

{title}

{members}
diff --git a/movie_bet_bot/utils/images.py b/movie_bet_bot/utils/images.py index 7f8954a..03cf55d 100644 --- a/movie_bet_bot/utils/images.py +++ b/movie_bet_bot/utils/images.py @@ -104,14 +104,14 @@ def build_html_standings_update_films_block(poster: str, rating: str) -> str: def build_html_standings_block( members: str, updates: str, - time: str, + title: str, title_class: str = "", members_class: str = "", show_update: bool = True, ): return constants.HTML_STANDINGS_TEMPLATE.format( head=constants.HTML_HEAD, - time=time, + title=title, members=members, updates=updates, updates_head_class="" if show_update else "hidden", @@ -128,6 +128,7 @@ def build_html_avg_watchtimes_block( ): return constants.HTML_STANDINGS_TEMPLATE.format( head=constants.HTML_HEAD, + title="Average Watchtimes", members=members, updates="", updates_head_class="hidden",