-
Notifications
You must be signed in to change notification settings - Fork 0
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
Submissions and User auth #1
Comments
So for submissions, this is what I could think of :
Still not sure about how to handle auth, any ideas? I've never dealt with auth |
@adityakiran1423 I have tried the Python package before. It provides the input for each day, also a clean interface for submissions. Auth is done using the session cookie obtained from browsers. Using Flask would be a good choice here, but that would make the entire app require having installed two different interpreters. Another benefit of using flask would be the support of python runtime as well.
I have no idea how we can fetch the part-2 content of a question though, that's not possible I guess. further:
|
The python package doesn't provide provisions to fetch text for part 2?
Can you elaborate how we can add support of python runtimes via flask and how we can extend runtime support for other langauges as well?
Nevermind, this is what I found for runtime support : multiple language runtime support Or should it have only a python runtime? |
@adityakiran1423 we can look into multiple runtimes at a later point. For now, we can implement the submission process and auth in this issue. The python package doesn't provide fetch options for any puzzle content at all. Instead, it provides a plugin to optionally scrape the contents of the puzzle. So yeah, there is no option to fetch part 2 of any question. There is no concept of function solve() {
// write solution code here
// return output as well
}
// sample test case runner
console.log(solve(input)); OR we can hide all the boilerplate surrounding the actual solution code and show only the solve method to user as well
|
Next plan is to include direct submission options within editor. For this authorization will be required. As of now there is no straight forward method to do this, so session cookies can be used.
The text was updated successfully, but these errors were encountered: