Fix some things with the seo snapshots and use the pep8 style guite.
This commit is contained in:
parent
af4c67d7cb
commit
6355b4a217
3 changed files with 26 additions and 27 deletions
|
@ -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/<path:path>', methods=['GET'])
|
||||
def snapshot(path = ''):
|
||||
result = renderSnapshot(path)
|
||||
result = render_snapshot(path)
|
||||
if result:
|
||||
return result
|
||||
|
||||
|
|
Reference in a new issue