Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widgets_FEKK
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
Kyla Martin
widgets_FEKK
Commits
32b9a942
Commit
32b9a942
authored
Apr 06, 2022
by
Katrina Bernice Tan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaned code for Assignment models and views
parent
b3a1230f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
models.py
WidgetFEKK/Assignments/models.py
+0
-1
views.py
WidgetFEKK/Assignments/views.py
+1
-1
No files found.
WidgetFEKK/Assignments/models.py
View file @
32b9a942
...
@@ -24,5 +24,4 @@ class Assignment(models.Model):
...
@@ -24,5 +24,4 @@ class Assignment(models.Model):
@
property
@
property
def
passing_score
(
self
):
def
passing_score
(
self
):
#return self.passing_score == 69
return
self
.
max_points
*
.6
return
self
.
max_points
*
.6
WidgetFEKK/Assignments/views.py
View file @
32b9a942
...
@@ -12,4 +12,4 @@ def index(request):
...
@@ -12,4 +12,4 @@ def index(request):
print
+=
f
"<br /> Assignment name: {i.name} <br /> Description: {i.description} <br /> Perfect score: {i.max_points} <br /> Passing score: {i.passing_score} <br /> Course/Section: {i.course} <br />"
print
+=
f
"<br /> Assignment name: {i.name} <br /> Description: {i.description} <br /> Perfect score: {i.max_points} <br /> Passing score: {i.passing_score} <br /> Course/Section: {i.course} <br />"
return
HttpResponse
(
print
)
return
HttpResponse
(
print
)
# Create your views here.
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