Simplify game addition notification in GameFeed; update links format
All checks were successful
Deploy to Server / deploy (push) Successful in 9s
All checks were successful
Deploy to Server / deploy (push) Successful in 9s
This commit is contained in:
parent
77d9d448d7
commit
b3974280d4
1 changed files with 9 additions and 18 deletions
|
|
@ -444,22 +444,13 @@ class GameFeed(Feed):
|
||||||
game_url: str = reverse("twitch:game_detail", args=[twitch_id])
|
game_url: str = reverse("twitch:game_detail", args=[twitch_id])
|
||||||
rss_feed_url: str = reverse("twitch:game_campaign_feed", args=[twitch_id])
|
rss_feed_url: str = reverse("twitch:game_campaign_feed", args=[twitch_id])
|
||||||
twitch_directory_url: str = getattr(item, "twitch_directory_url", "")
|
twitch_directory_url: str = getattr(item, "twitch_directory_url", "")
|
||||||
if slug:
|
|
||||||
description_parts.append(
|
description_parts.append(
|
||||||
SafeText(
|
SafeText(
|
||||||
f"<p>New game has been added to ttvdrops.lovinator.space: {game_name} by {game_owner}\n"
|
f"<p>New game has been added to ttvdrops.lovinator.space: {game_name} by {game_owner}\n\n"
|
||||||
f"<a href='{game_url}'>Game Details</a>\n"
|
f"<a href='{game_url}'>[Details]</a> "
|
||||||
f"<a href='{twitch_directory_url}'>Twitch</a>\n"
|
f"<a href='{twitch_directory_url}'>[Twitch]</a> "
|
||||||
f"<a href='{rss_feed_url}'>RSS feed</a>\n</p>",
|
f"<a href='{rss_feed_url}'>[RSS feed]</a>\n</p>",
|
||||||
),
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
description_parts.append(
|
|
||||||
SafeText(
|
|
||||||
f"<p>A new game has been added to ttvdrops.lovinator.space: {game_name} by {game_owner}\n"
|
|
||||||
f"<a href='{game_url}'>Game Details</a>\n"
|
|
||||||
f"<a href='{twitch_directory_url}'>Twitch</a>\n"
|
|
||||||
f"<a href='{rss_feed_url}'>RSS feed</a>\n</p>",
|
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue