Commit ba234433 by liuyingying

修改文章显示问题

parent da190d0b
......@@ -56,7 +56,7 @@ def index(request):
year = str(art.editDateTime)[0:4]
art.editDateTime = str(art.editDateTime)[5:10]
if year in article_year_list.keys():
article_year_list[year] = [art]
article_year_list[year].append(art)
else:
article_year_list[year] = [art]
context = {
......
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