Commit 35caa0b0 authored by ale's avatar ale

typo fix

parent 6f54b1b7
......@@ -85,7 +85,7 @@ class VideoController(BaseController):
strategy is also simpler."""
res = model.VideoQuery.query([(what, arg)])
c.videos = res.query.order_by([desc(model.Video.publication_date)]).limit(15).all()
c.title = rest.title
c.title = res.title
etag = md5.md5(u''.join([x.title for x in videos]).encode('utf-8')).hexdigest()
etag_cache(etag)
response.headers['Expires'] = h.httpdate(datetime.now() + timedelta(1))
......
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