From 20cc7b2f20a0dd1ddae31e7ae89f0535ed5ea675 Mon Sep 17 00:00:00 2001 From: Zanger67 Date: Sat, 20 Jul 2024 02:35:20 -0700 Subject: [PATCH] test --- main.ipynb | 2 -- main.py | 2 -- questionDataclass.py | 5 +++-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/main.ipynb b/main.ipynb index 98976a0..3499f0a 100644 --- a/main.ipynb +++ b/main.ipynb @@ -563,8 +563,6 @@ "\n", " try :\n", " number = int(re.search(\"\\d{1,4}\", leetcodeFile).group()) # Takes the first full number as the question\n", - " print(f'Parsing {number}...')\n", - " print(questionDetailsDict[number])\n", " level = questionDetailsDict[number].level # number and uses that as reference\n", " # e.g. 'e123 v1.py' becomes 123\n", " except AttributeError as ae :\n", diff --git a/main.py b/main.py index a742c5f..febcf5a 100644 --- a/main.py +++ b/main.py @@ -500,8 +500,6 @@ def parseCase(leetcodeFile: str, # file name try : number = int(re.search("\d{1,4}", leetcodeFile).group()) # Takes the first full number as the question - print(f'Parsing {number}...') - print(questionDetailsDict[number]) level = questionDetailsDict[number].level # number and uses that as reference # e.g. 'e123 v1.py' becomes 123 except AttributeError as ae : diff --git a/questionDataclass.py b/questionDataclass.py index f54f4eb..982a5e7 100644 --- a/questionDataclass.py +++ b/questionDataclass.py @@ -29,7 +29,8 @@ def __init__(self, def __str__(self): - return f"questionNo: {self.questionNo}, acRate: {self.acRate}, difficulty: {self.difficulty}, isFavor: {self.isFavor}, paidOnly: {self.paidOnly}, title: {self.title}, slug: {self.slug}, url: {self.url}, topics: {self.topics}, hasSolution: {self.hasSolution}, hasVideoSolution: {self.hasVideoSolution}" + return f"questionNo: {self.questionNo}, acRate: {self.acRate}, difficulty: {self.difficulty}, level: {self.level}, isFavor: {self.isFavor}, paidOnly: {self.paidOnly}, title: {self.title}, slug: {self.slug}, url: {self.url}, topics: {self.topics}, hasSolution: {self.hasSolution}, hasVideoSolution: {self.hasVideoSolution}" def __repr__(self) -> str: - return f"questionNo: {self.questionNo}, acRate: {self.acRate}, difficulty: {self.difficulty}, isFavor: {self.isFavor}, paidOnly: {self.paidOnly}, title: {self.title}, slug: {self.slug}, url: {self.url}, topics: {self.topics}, hasSolution: {self.hasSolution}, hasVideoSolution: {self.hasVideoSolution}" \ No newline at end of file + return f"questionNo: {self.questionNo}, acRate: {self.acRate}, difficulty: {self.difficulty}, level: {self.level}, isFavor: {self.isFavor}, paidOnly: {self.paidOnly}, title: {self.title}, slug: {self.slug}, url: {self.url}, topics: {self.topics}, hasSolution: {self.hasSolution}, hasVideoSolution: {self.hasVideoSolution}" + \ No newline at end of file