Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: failed scores seem to have urls now
Browse files Browse the repository at this point in the history
NiceAesth committed Jan 31, 2024
1 parent 9f21227 commit b198d74
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aiosu/models/lazer.py
Original file line number Diff line number Diff line change
@@ -175,7 +175,7 @@ def score_url(self) -> Optional[str]:
:return: Link to the score on the osu! website
:rtype: Optional[str]
"""
if (not self.id and not self.best_id) or not self.passed:
if not self.id:
return None
return (
f"https://osu.ppy.sh/scores/{self.id}"
2 changes: 1 addition & 1 deletion aiosu/models/score.py
Original file line number Diff line number Diff line change
@@ -171,7 +171,7 @@ def score_url(self) -> Optional[str]:
:return: Link to the score on the osu! website
:rtype: Optional[str]
"""
if (not self.id and not self.best_id) or not self.passed:
if not self.id:
return None
return (
f"https://osu.ppy.sh/scores/{self.id}"

0 comments on commit b198d74

Please sign in to comment.