Skip to content

Commit

Permalink
fix python lint
Browse files Browse the repository at this point in the history
  • Loading branch information
abbiesims committed Jan 23, 2025
1 parent 364f96e commit 2143670
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions webapp/docs/views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from os import getenv

import talisker.requests

from canonicalwebteam.search import build_search_view
Expand All @@ -11,10 +9,10 @@
def init_docs(app):
session = talisker.requests.get_session()

def render_juju_ecosystem_docs_page():
def render_juju_docs_page():
return render_template("docs/juju-ecosystem-docs.html")

app.add_url_rule("/docs", "juju-ecosystem-docs", render_juju_ecosystem_docs_page)
app.add_url_rule("/docs", "juju-ecosystem-docs", render_juju_docs_page)

app.add_url_rule(
"/docs/search",
Expand All @@ -26,4 +24,3 @@ def render_juju_ecosystem_docs_page():
template_path="docs/search.html",
),
)

0 comments on commit 2143670

Please sign in to comment.