From 6355b4a217cfc2b8f0150e013ee29d46ce41d42a Mon Sep 17 00:00:00 2001 From: yackob03 Date: Mon, 18 Nov 2013 18:42:27 -0500 Subject: [PATCH] Fix some things with the seo snapshots and use the pep8 style guite. --- endpoints/web.py | 4 ++-- static/partials/header.html | 20 +++++++++++--------- util/seo.py | 29 +++++++++++++---------------- 3 files changed, 26 insertions(+), 27 deletions(-) diff --git a/endpoints/web.py b/endpoints/web.py index c76d2f60b..188533721 100644 --- a/endpoints/web.py +++ b/endpoints/web.py @@ -11,7 +11,7 @@ from data import model from app import app, login_manager, mixpanel from auth.permissions import QuayDeferredPermissionUser, AdministerOrganizationPermission from util.invoice import renderInvoiceToPdf -from util.seo import renderSnapshot +from util.seo import render_snapshot logger = logging.getLogger(__name__) @@ -54,7 +54,7 @@ def index(path): @app.route('/snapshot/', methods=['GET']) @app.route('/snapshot/', methods=['GET']) def snapshot(path = ''): - result = renderSnapshot(path) + result = render_snapshot(path) if result: return result diff --git a/static/partials/header.html b/static/partials/header.html index 34e2d2231..1bb22afbf 100644 --- a/static/partials/header.html +++ b/static/partials/header.html @@ -22,15 +22,17 @@