Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_aguandhischipmunks
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
Adrian Lance Damalerio
midterm_aguandhischipmunks
Commits
2e5e6727
Commit
2e5e6727
authored
Mar 05, 2023
by
Deokhyun Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
passing score is implemented based on perfect_score
parent
45fbb940
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
models.cpython-310.pyc
...schipmunks/assignments/__pycache__/models.cpython-310.pyc
+0
-0
views.cpython-310.pyc
...ischipmunks/assignments/__pycache__/views.cpython-310.pyc
+0
-0
models.py
widget_aguandhischipmunks/assignments/models.py
+2
-2
No files found.
widget_aguandhischipmunks/assignments/__pycache__/models.cpython-310.pyc
View file @
2e5e6727
No preview for this file type
widget_aguandhischipmunks/assignments/__pycache__/views.cpython-310.pyc
View file @
2e5e6727
No preview for this file type
widget_aguandhischipmunks/assignments/models.py
View file @
2e5e6727
...
...
@@ -23,10 +23,10 @@ class Assignment(models.Model):
def
__str__
(
self
):
return
self
.
name
# calculates a passing score of 60%
# calculates a passing score of 60%
based on perfect_score
@
property
def
passing_score_calculated
(
self
):
return
int
(
self
.
p
assing
_score
*
0.6
)
return
int
(
self
.
p
erfect
_score
*
0.6
)
def
save
(
self
,
*
args
,
**
kwarg
):
# passing_score will be updated after save()
...
...
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