Skip to content
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

Question interface #134

Merged
merged 14 commits into from
Jun 3, 2019
Merged

Question interface #134

merged 14 commits into from
Jun 3, 2019

Conversation

rsvarma95
Copy link
Contributor

@rsvarma95 rsvarma95 commented May 26, 2019

Thank You for your contribution to the PyJudge

  • Added a question interface to submit questions
  • Added a contest interface to create contests

I have not changed the existing Question Model and have created a new Model UploadedQuestion that will handle the Questions submitted through the web interface

User Submission History and User Stats
Updated to include new db changes and user specific data
Updated Code
Updated to check user session cookie, get count from already read database and directly convert to list
Updated to handle statsitics even if the session changes
Formatted code
User Submission History and User Stats (PyJaipur#131)
Included enchancement to submit questions through the web interface
server.py Outdated Show resolved Hide resolved
server.py Outdated Show resolved Hide resolved
server.py Outdated Show resolved Hide resolved
Updated to remove the existing table and replace it with the new table
@rsvarma95
Copy link
Contributor Author

rsvarma95 commented May 26, 2019

  • I have removed the existing table and replaced it with my table. I have tried to keep the test data intact as much as possible.
  • I have given more meaningful field names.
  • I have used the existing contest question URL instead of creating a new one.

server.py Outdated Show resolved Hide resolved
server.py Outdated Show resolved Hide resolved
server.py Outdated Show resolved Hide resolved
server.py Outdated Show resolved Hide resolved
server.py Outdated Show resolved Hide resolved
server.py Outdated Show resolved Hide resolved
Updated to  move the dummy code to another file
Updated to add proper exceptions
Upudated to adddeafult date/time
Updated to refer session variable directly
@rsvarma95
Copy link
Contributor Author

I have made the above changes. The test data is in a new file called insert_dummy.py that has to be run from the console after the initial server is up.

insert_dummy.py Show resolved Hide resolved
Updated to add support for adding Contests
@rsvarma95
Copy link
Contributor Author

I have added the interface for adding Contests too. I am yet to work on the insert_dummy.py file. Didn't get much time today and wanted to finish the Contest interface also.

@theSage21
Copy link
Member

take your time. I'm also running a little busy these days.

Updated file to populate test data without database call and directly through POST method
@rsvarma95
Copy link
Contributor Author

I have added updated the insert_dummy.py file. Adding screenshots of the Add Question and Add Contest Interface.

Main Page :
image

Question Upload Page :
image

Question List Page :
image

Contest Creation Page :
image

@rsvarma95
Copy link
Contributor Author

I actually wanted to start development #128 . Should I start working on the original PyJaipur master branch copy or the one which has been accepted here ?

@theSage21 theSage21 merged commit 67730ed into PyJaipur:master Jun 3, 2019
@rsvarma95 rsvarma95 deleted the question-interface branch June 3, 2019 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants