Commit c6e8c87
authored
Update action.js to handle locked LeetCode Premium Problems
Added error handling in the `getInfo` function to skip locked problems. When the function encounters a locked problem (HTTP 403 error), it logs a message and skips the problem instead of retrying or throwing an exception.
- Updated the `getQuestionData` function to handle locked problems. If fetching the question data results in a locked problem error (HTTP 403), it logs the error and returns null to indicate that the problem should be skipped.
Modified the `sync` function to skip submissions related to locked problems. It continues the sync process for other problems, ensuring that locked problems do not cause the entire sync process to fail.1 parent f75ed44 commit c6e8c87
1 file changed
+20
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
108 | 113 | | |
109 | 114 | | |
110 | 115 | | |
| |||
235 | 240 | | |
236 | 241 | | |
237 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
238 | 248 | | |
239 | 249 | | |
240 | 250 | | |
| |||
415 | 425 | | |
416 | 426 | | |
417 | 427 | | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
418 | 433 | | |
419 | 434 | | |
420 | 435 | | |
421 | 436 | | |
422 | 437 | | |
423 | 438 | | |
424 | 439 | | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
425 | 444 | | |
426 | 445 | | |
427 | 446 | | |
| |||
0 commit comments