Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
midterm_robo_mommy
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Raul Jarod Conanan
midterm_robo_mommy
Commits
38469afd
Commit
38469afd
authored
Mar 05, 2023
by
Jiuvi Anne Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed error in .views
parent
24f3c55b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
views.cpython-38.pyc
...robo_mommy/announcements/__pycache__/views.cpython-38.pyc
+0
-0
views.py
widget_robo_mommy/announcements/views.py
+4
-4
No files found.
widget_robo_mommy/announcements/__pycache__/views.cpython-38.pyc
View file @
38469afd
No preview for this file type
widget_robo_mommy/announcements/views.py
View file @
38469afd
...
...
@@ -14,8 +14,8 @@ def convert_to_localtime(utctime):
def
index
(
request
):
html_string_1
=
'<html lang="en"><head><meta charset="UTF-8"></head>
\
<b><h1>
"Widget
\'
s Announcement Board"</h1></b><br/
>
\
<h2>
"Announcements:"
</h2><br/>'
<b><h1>
Widget
\'
s Announcement Board</h1></b
>
\
<h2>
Announcements:
</h2><br/>'
html_string_2
=
""
for
announced
in
Announcement
.
objects
.
all
():
...
...
@@ -23,8 +23,8 @@ def index(request):
{}"
.
format
(
announced
.
title
,
announced
.
author
.
first_name
,
announced
.
author
.
last_name
,
convert_to_localtime
(
announced
.
pub_datetime
),
announced
.
body
)
for
reacts
in
announced
.
reaction
.
all
():
html_string_2
+=
"{}: {}"
.
format
(
reacts
.
name
,
reacts
.
tally
)
for
reacts
in
announced
.
reaction
.
all
():
html_string_2
+=
"{}: {}"
.
format
(
reacts
.
name
,
reacts
.
tally
)
html_string_final
=
html_string_1
+
html_string_2
+
"</html>"
...
...
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