From 07f42fabf2f916ec0276201e48465d62ed717856 Mon Sep 17 00:00:00 2001 From: xnorpx Date: Sat, 11 Jun 2022 06:47:39 -0700 Subject: [PATCH] Add difficulty to tags --- leetcode_anki/helpers/leetcode.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/leetcode_anki/helpers/leetcode.py b/leetcode_anki/helpers/leetcode.py index 3de1267..9a910d7 100644 --- a/leetcode_anki/helpers/leetcode.py +++ b/leetcode_anki/helpers/leetcode.py @@ -349,7 +349,9 @@ async def tags(self, problem_slug: str) -> List[str]: List of the tags for this problem (string slugs) """ data = self._get_problem_data(problem_slug) - return list(map(lambda x: x.slug, data.topic_tags)) + tags = list(map(lambda x: x.slug, data.topic_tags)) + tags.append(data.difficulty) + return tags async def freq_bar(self, problem_slug: str) -> float: """