Updated format for announcement_view

parent 7abfab6e
...@@ -18,9 +18,10 @@ def index(request): ...@@ -18,9 +18,10 @@ def index(request):
love_tally+=r.tally love_tally+=r.tally
elif r.name=="Angry" and r.announcement==a: elif r.name=="Angry" and r.announcement==a:
angry_tally+=r.tally angry_tally+=r.tally
announcement_view += "<br/> {} by {} published {}: <br/> {} <br/> Like: {} <br/> Love: {} <br/> Angry: {} <br/>".\ announcement_view += "<br/> {} by {} {} published {}: <br/> {} <br/> Like: {} <br/> Love: {} <br/> Angry: {} <br/>".\
format(a.title, format(a.title,
a.author, a.author.first_name,
a.author.last_name,
a.pub_datetime.strftime('%m/%d/%Y, %H:%M %p'), a.pub_datetime.strftime('%m/%d/%Y, %H:%M %p'),
a.body, a.body,
like_tally, like_tally,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment