TODO category filter page generation, link LeetCode tag page for now

This commit is contained in:
2023-10-08 20:07:25 -05:00
parent 28196dcdec
commit d28977dfa0
3 changed files with 28 additions and 18 deletions

View File

@@ -27,6 +27,13 @@ class Tag(BaseModel):
slug: str
name: str
@property
def url(self) -> str:
"""
Gets the URL to the tag.
"""
return f"https://leetcode.com/tag/{self.slug}"
class Question(BaseModel):
"""