# HG changeset patch # User Ludovic Chabant # Date 1355292790 28800 # Node ID 37aa641facaf46a2e8c44b5dc1403df230ba7651 # Parent c946f4facfa2f99798ef236346144b54de207b4b Fixed title for history page. diff -r c946f4facfa2 -r 37aa641facaf wikked/views.py --- a/wikked/views.py Mon Dec 10 22:40:52 2012 -0800 +++ b/wikked/views.py Tue Dec 11 22:13:10 2012 -0800 @@ -125,6 +125,7 @@ @app.route('/api/history/') def api_page_history(url): + page = get_page_or_404(url) history = wiki.getPageHistory(url) hist_data = [] for i, rev in enumerate(reversed(history)): @@ -136,6 +137,6 @@ 'timestamp': rev.timestamp, 'description': rev.description }) - result = { 'url': url, 'history': hist_data } + result = { 'url': url, 'title': page.title, 'history': hist_data } return jsonify(result)