Skip to content

Commit 0cb22b5

Browse files
authored
Update updateSiteData.js
1 parent 627c245 commit 0cb22b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: updateSiteData.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ function updateProblemNumber(problemNumberInt) {
121121

122122
function updateSiteData(problemUrl, newCodeLink, langName) {
123123
for (const p of PROBLEMS_SITE_DATA) {
124+
// TODO: Bug here where some problem names are too similar (e.g. LC 300 and LC 673)
124125
if (problemUrl.includes(p.link)) {
125126
p.code = newCodeLink;
126127
p[langName] = true;
@@ -148,4 +149,4 @@ fs.writeFile('./.problemSiteData.json', JSON.stringify(PROBLEMS_SITE_DATA), func
148149
// fs.writeFile('./.problemList.json', JSON.stringify(PROBLEMS_OBJ), function (err) {
149150
// if (err) throw err;
150151
// console.log('Saved!');
151-
// });
152+
// });

0 commit comments

Comments
 (0)