Commit 1355987a authored by ale's avatar ale

fix typo in Video.rss

parent 6973326d
......@@ -86,7 +86,7 @@ class VideoController(BaseController):
res = model.VideoQuery.query([(what, arg)])
c.videos = res.query.order_by([desc(model.Video.publication_date)]).limit(15).all()
c.title = res.title
etag = md5.md5(u''.join([x.title for x in videos]).encode('utf-8')).hexdigest()
etag = md5.md5(u''.join([x.title for x in c.videos]).encode('utf-8')).hexdigest()
response.headers['Expires'] = h.httpdate( + timedelta(1))
response.headers['Last-Modified'] = h.httpdate(c.videos[0].publication_date)
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