From d820d64ff9b4923efd533ee32eade5a82073bab4 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Mon, 1 Jan 2024 17:21:35 -0800 Subject: [PATCH] Fix edge case where the base url isnt in the badge url for some reason --- app/star_citizen.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/star_citizen.py b/app/star_citizen.py index b9239d59..a0610cc8 100755 --- a/app/star_citizen.py +++ b/app/star_citizen.py @@ -95,6 +95,8 @@ async def rsi_find(player): .findNext("span", class_="icon") .findNext("img")["src"] ) + if base_url not in badge_url: + badge_url = base_url + badge_url badge_text = ( soup.find("p", class_="entry")