Skip to content

Commit b3271cd

Browse files
authored
Update README.md
1 parent 84b5eb1 commit b3271cd

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,17 @@ Special thanks to the following people who helped beta test this GitHub Action a
111111
- [uakfdotb](https://github.com/uakfdotb)
112112
- [hexecute](https://github.com/hexecute)
113113
- [JonathanZhu11](https://github.com/JonathanZhu11)
114+
115+
## Updated by [Aly Ghallab](https://github.com/AlyHG) to Handle Locked LeetCode Premium Problems and Improve Sync Reliability - June 19, 2024
116+
117+
- **Error Handling for Locked 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.
118+
- **Fetching Question Data:** Updated the `getQuestionData` function to handle errors when fetching question data for 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.
119+
- **Sync Function Modification:** Modified the `sync` function to continue syncing other problems even if some are locked, ensuring that locked problems do not cause the entire sync process to fail.
120+
- **Additional Logging:** Added logging to help identify and skip locked problems during the sync process.
121+
122+
123+
These changes improve the sync process by handling scenarios where some LeetCode problems are locked, allowing the action to continue syncing all available, unlocked problems successfully.
124+
125+
126+
127+

0 commit comments

Comments
 (0)