Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zanger67 committed Jul 20, 2024
1 parent 1c68f1e commit 20cc7b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 :
Expand Down
5 changes: 3 additions & 2 deletions questionDataclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
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}"

0 comments on commit 20cc7b2

Please sign in to comment.