Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_group17
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
Vaughn Nephi Fajardo
widget_group17
Commits
c91fe2c7
Commit
c91fe2c7
authored
May 18, 2022
by
Joan Denise Nocos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: populated image field in Assignment model
parent
e54f958a
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
4 additions
and
0 deletions
+4
-0
views.cpython-39.pyc
widget_group_17/assignments/__pycache__/views.cpython-39.pyc
+0
-0
Assignment-1-image.png
widget_group_17/assignments/static/Assignment-1-image.png
+0
-0
Assignment-2-image.png
widget_group_17/assignments/static/Assignment-2-image.png
+0
-0
Assignment-3-image.png
widget_group_17/assignments/static/Assignment-3-image.png
+0
-0
Assignment-4-image.png
widget_group_17/assignments/static/Assignment-4-image.png
+0
-0
views.py
widget_group_17/assignments/views.py
+4
-0
db.sqlite3
widget_group_17/db.sqlite3
+0
-0
No files found.
widget_group_17/assignments/__pycache__/views.cpython-39.pyc
View file @
c91fe2c7
No preview for this file type
widget_group_17/assignments/static/Assignment-1-image.png
0 → 100644
View file @
c91fe2c7
34.5 KB
widget_group_17/assignments/static/Assignment-2-image.png
0 → 100644
View file @
c91fe2c7
40 KB
widget_group_17/assignments/static/Assignment-3-image.png
0 → 100644
View file @
c91fe2c7
30.4 KB
widget_group_17/assignments/static/Assignment-4-image.png
0 → 100644
View file @
c91fe2c7
28.2 KB
widget_group_17/assignments/views.py
View file @
c91fe2c7
...
...
@@ -17,6 +17,10 @@ def details(request, assignment_id):
assignment
=
Assignment
.
objects
.
get
(
pk
=
assignment_id
)
except
Assignment
.
DoesNotExist
:
raise
Http404
(
"Assignment does not exist!"
)
score
=
assignment
.
max_points
assignment
.
passing_score
=
(
score
*
60
)
//
100
context
=
{
"assignment"
:
assignment
,
"course"
:
assignment
.
course
,
...
...
widget_group_17/db.sqlite3
View file @
c91fe2c7
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