Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_casanatics
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
John Aidan Vincent M. Ng
midterm_casanatics
Commits
a6724208
Commit
a6724208
authored
Mar 05, 2023
by
Javi Ng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implemented rounding for assignments passing score
parent
15fd58a7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
2 deletions
+2
-2
models.cpython-310.pyc
...casanatics/assignments/__pycache__/models.cpython-310.pyc
+0
-0
models.py
widget_casanatics/assignments/models.py
+2
-2
db.sqlite3
widget_casanatics/db.sqlite3
+0
-0
settings.cpython-310.pyc
...cs/widget_casanatics/__pycache__/settings.cpython-310.pyc
+0
-0
No files found.
widget_casanatics/assignments/__pycache__/models.cpython-310.pyc
View file @
a6724208
No preview for this file type
widget_casanatics/assignments/models.py
View file @
a6724208
...
...
@@ -17,9 +17,9 @@ class Assignment(models.Model):
perfect_score
=
models
.
IntegerField
(
default
=
0
)
@
property
def
passing_score
(
self
):
def
passing_score
(
self
)
->
int
:
if
self
.
perfect_score
!=
None
:
return
self
.
perfect_score
*
0.60
return
round
(
self
.
perfect_score
*
0.60
)
def
__str__
(
self
):
return
self
.
name
widget_casanatics/db.sqlite3
View file @
a6724208
No preview for this file type
widget_casanatics/widget_casanatics/__pycache__/settings.cpython-310.pyc
View file @
a6724208
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment