Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_group 25
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
Andre Matthew Dumandan
widget_group 25
Commits
8daa597e
Commit
8daa597e
authored
Apr 03, 2022
by
Rau Layug
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reformatted calendarapp views.py
parent
39952c28
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
views.py
widget_group_25/calendarapp/views.py
+10
-3
No files found.
widget_group_25/calendarapp/views.py
View file @
8daa597e
...
...
@@ -15,10 +15,17 @@ def index(request):
target_date
=
event
.
target_date
activity
=
event
.
activity
estimated_hours
=
event
.
estimated_hours
course_section
=
"{} {} {}"
.
format
(
course
.
course_code
,
course
.
course_title
,
course
.
section
)
course_section
=
"{} {} {}"
.
format
(
course
.
course_code
,
course
.
course_title
,
course
.
section
)
mode
=
location
.
get_mode_display
()
venue
=
location
.
venue
response
+=
"Target Date: {}<br>Activity: {}<br>Estimated Hours: {}<br>Course/Section: {}<br>Mode: {}<br>Venue: {}<br><br>"
.
format
(
target_date
,
activity
,
estimated_hours
,
course_section
,
mode
,
venue
)
response_string
=
"Target Date: {}<br>Activity: {}<br>Estimated "
\
"Hours: {}<br>Course/Section: {}<br>Mode: {"
\
"}<br>Venue: {}<br><br>"
response
+=
response_string
.
format
(
target_date
,
activity
,
estimated_hours
,
course_section
,
mode
,
venue
)
return
HttpResponse
(
response
)
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