File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 13
13
date
14
14
link
15
15
question {
16
- questionId
16
+ questionFrontendId
17
17
title
18
18
titleSlug
19
19
difficulty
33
33
# Check if the expected data is present in the API response
34
34
if 'data' in data and 'activeDailyCodingChallengeQuestion' in data ['data' ]:
35
35
problem = data ['data' ]['activeDailyCodingChallengeQuestion' ]['question' ]
36
- problem_id = problem ['questionId ' ]
36
+ problem_id = problem ['questionFrontendId ' ]
37
37
title = problem ['title' ]
38
38
title_slug = problem ['titleSlug' ]
39
39
link = f"https://leetcode.com/problems/{ title_slug } "
82
82
table_content [- 1 ] = table_content [- 1 ].rstrip ()
83
83
84
84
# Rebuild the README with the new entry added to the table
85
- updated_readme = before_table + table_content + [new_entry + '\n ' ] + after_table
85
+ updated_readme = before_table + table_content + [new_entry + '\n \n ' ] + after_table
86
86
87
87
# Overwrite the README file with the updated content
88
88
with open (readme_file , 'w' ) as file :
You can’t perform that action at this time.
0 commit comments