Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_gitgud
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
Neal Luigi D. Rodriguez
midterm_gitgud
Commits
0182df76
Commit
0182df76
authored
May 13, 2023
by
Neal Luigi D. Rodriguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Database Updated and Format for section fixed
parent
88405469
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
1 deletion
+4
-1
models.cpython-311.pyc
widget_gitgud/Assignments/__pycache__/models.cpython-311.pyc
+0
-0
models.py
widget_gitgud/Assignments/models.py
+3
-0
assignment-details.html
...Assignments/templates/Assignments/assignment-details.html
+1
-1
db.sqlite3
widget_gitgud/db.sqlite3
+0
-0
No files found.
widget_gitgud/Assignments/__pycache__/models.cpython-311.pyc
View file @
0182df76
No preview for this file type
widget_gitgud/Assignments/models.py
View file @
0182df76
...
...
@@ -22,6 +22,9 @@ class Assignment(models.Model):
def
get_absolute_url
(
self
):
return
reverse
(
'Assignments:assignment-details'
,
kwargs
=
{
'pk'
:
self
.
pk
})
def
get_course_details
(
self
):
return
'{} {}-{}'
.
format
(
self
.
course
.
code
,
self
.
course
.
title
,
self
.
course
.
section
)
@
property
def
passing_score
(
self
):
return
int
(
self
.
perfect_score
*
0.60
)
\ No newline at end of file
widget_gitgud/Assignments/templates/Assignments/assignment-details.html
View file @
0182df76
...
...
@@ -5,7 +5,7 @@
{% block content %}
<h1>
{{ object.name }}
</h1>
<h2>
{{ object.
course
}}
</h2>
<h2>
{{ object.
get_course_details
}}
</h2>
<ul>
<li>
Description: {{ object.description }}
</li>
<li>
Perfect Score: {{ object.perfect_score }}
</li>
...
...
widget_gitgud/db.sqlite3
View file @
0182df76
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