Skip to content

Commit

Permalink
use sqlite as database (#126)
Browse files Browse the repository at this point in the history
* databse for users

* minor update.

* exists and IntegrityError

* session table done

* submissions table.

* used tuples.

* index for submission

* setup database for contest

* Apply suggestions from code review

Co-Authored-By: Arjoonn Sharma <[email protected]>

* removed db

* database completed.

* used backref and added token

* minor changes

* corrected coontest ranks and optimized submission

* contestProblem made Foreign key in submission. TODO: rankings

* ranking completed. correct scoring :)

* added contest not started in contest/code handler
  • Loading branch information
rishabhKalakoti authored and theSage21 committed May 23, 2019
1 parent e3debe1 commit 96f91d9
Show file tree
Hide file tree
Showing 6 changed files with 236 additions and 159 deletions.
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,8 @@ target/

.idea/
venv/

.vscode/
# Folder

.pytest_cache
submission_record.db
user_record.db
session_record.db
data.db
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ bottle = "*"
pip = "==18.0"
pre-commit = "*"
black = "*"
peewee = "*"

[dev-packages]
requests = "*"
Expand Down
64 changes: 39 additions & 25 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 96f91d9

Please sign in to comment.