Skip to content

Commit e085968

Browse files
authored
Merge pull request #26 from xnorpx/dev/difficultyintags
Add difficulty to tags
2 parents dd7dbc8 + 07f42fa commit e085968

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

leetcode_anki/helpers/leetcode.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,9 @@ async def tags(self, problem_slug: str) -> List[str]:
349349
List of the tags for this problem (string slugs)
350350
"""
351351
data = self._get_problem_data(problem_slug)
352-
return list(map(lambda x: x.slug, data.topic_tags))
352+
tags = list(map(lambda x: x.slug, data.topic_tags))
353+
tags.append(data.difficulty)
354+
return tags
353355

354356
async def freq_bar(self, problem_slug: str) -> float:
355357
"""

0 commit comments

Comments
 (0)