Skip to content

Commit

Permalink
fix: Fix invalid url for WebEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Jan 2, 2025
1 parent 3794f5c commit 9f2fef5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions genshin/models/hoyolab/web_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ class WebEvent(APIModel):

@property
def url(self) -> str:
if "https" in self.web_path:
return self.web_path
return f"https://www.hoyolab.com{self.web_path}"

0 comments on commit 9f2fef5

Please sign in to comment.