-
Notifications
You must be signed in to change notification settings - Fork 65
Leetcode contests #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
c3c3df3
add graphql query for user info
152334H e8e83eb
add parser for graphql user info
152334H a22a4f6
return `CookieError` when leetcode rejects exec/test `Run`
152334H 9d1a95c
add the `is_session_bad` method to somewhat-accurately determine when...
152334H 916e936
When json parsing fails, if the underlying request requires user auth...
152334H a545657
Merge branch 'clearloop:master' into master
152334H bd740e8
get rid of ZWSPs in problem descriptions (see #56)
152334H 1512f72
Merge branch 'master' of github.com:152334H/leetcode-cli
152334H ff7baf0
add Error::PremiumError
152334H 496c332
throw PremiumError when locked questions are queried for details
152334H 944b9a9
Merge branch 'clearloop:master' into master
152334H 0f881e2
clippy fix
152334H 22248f2
slight refactor: use multiline strings instead of `vec![].join("")`, ...
152334H d7114f7
function_name
152334H b623957
Req.info is a useless field
152334H c7c85ff
merge `Req.mode` and `Req.json` into a single enum
152334H b541443
simplify Req construction
152334H b3937d5
remove `trace!`/`info!` calls that are effectively duplicates of othe...
152334H 500894d
refactor `Leetcode` methods to take `&self`; remove unnecessary `.clo...
152334H d757aff
put back the info!() call I accidentally removed
152334H cecf571
add ContestNode and ContestQuestionNode types to models.rs
152334H 78fbba6
add a parser for Contest type
152334H 12af5fd
add stubs for new commands `contest` and `fun` (which may or may not ...
152334H 07aefe9
add TODO for get_question_tags_by_id (should probably use .get_graphql)
152334H 4c58149
add a generic graphql query function
152334H 98885a0
deduplicate code using `.get_graphql()`
152334H 9102d6c
add a minor test for parsing ContestQuestionNode
152334H b14ca10
add contest query methods to leetcode.rs
152334H 69cf804
add parser for contest questions (it is actually a parser for questio...
152334H d5ee9bf
add contest/contestquestion handlers to cache mod
152334H 81df506
change exec/test commands to allow for contest problem submissions
152334H e567b46
Add `contest` command.
152334H 375004b
add debug fun command (will probably remove later)
152334H c02986e
add chrono package for contest command
152334H dcec6ff
add necessary URLs to cfg.rs for contest command
152334H b3eb0e2
revert contest println formatting to previous working edition
152334H b3d8cf5
clippy patch
152334H eefa2f0
clean up contest/fun commands code
152334H 1d32cfc
use serde_json to autoparse where possible
152334H 64962b1
merge `get_question_detail` and `get_contest_question_detail`
152334H 8c862bd
use `get_graphql` more
152334H File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.