This repository was archived by the owner on Jul 7, 2024. It is now read-only.
forked from clearloop/leetcode-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit 2b373c0
* add graphql query for user info
* add parser for graphql user info
* return `CookieError` when leetcode rejects exec/test `Run`
* add the `is_session_bad` method to somewhat-accurately determine when a LEETCODE_SESSION becomes invalid
* When json parsing fails, if the underlying request requires user authentication, use `is_session_bad()` to check if LEETCODE_SESSION is valid.
* get rid of ZWSPs in problem descriptions (see clearloop#56)
* add Error::PremiumError
* throw PremiumError when locked questions are queried for details
1 parent 59f075b commit 2b373c0
4 files changed
+33
-4
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
177 | 177 |
| |
178 | 178 |
| |
179 | 179 |
| |
180 | - | ||
180 | + | ||
181 | + | ||
182 | + | ||
183 | + | ||
184 | + | ||
185 | + | ||
186 | + | ||
187 | + | ||
188 | + | ||
189 | + | ||
181 | 190 |
| |
182 | 191 |
| |
183 | 192 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 | - | ||
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
33 | 37 |
| |
34 | 38 |
| |
35 | 39 |
| |
36 | 40 |
| |
37 | 41 |
| |
38 | 42 |
| |
39 | 43 |
| |
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
40 | 48 |
| |
41 | 49 |
| |
42 | 50 |
| |
| |||
55 | 63 |
| |
56 | 64 |
| |
57 | 65 |
| |
58 | - | ||
66 | + | ||
59 | 67 |
| |
60 | 68 |
| |
61 | 69 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 | + | ||
17 | 18 |
| |
18 | 19 |
| |
19 | 20 |
| |
| |||
37 | 38 |
| |
38 | 39 |
| |
39 | 40 |
| |
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
40 | 48 |
| |
41 | 49 |
| |
42 | 50 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
147 | 147 |
| |
148 | 148 |
| |
149 | 149 |
| |
150 | - | ||
150 | + | ||
151 | + | ||
152 | + | ||
153 | + | ||
154 | + | ||
151 | 155 |
| |
152 | 156 |
| |
153 | 157 |
| |
|
0 commit comments