Skip to content

Commit

Permalink
lint and black format
Browse files Browse the repository at this point in the history
  • Loading branch information
ckrew committed Mar 14, 2024
1 parent 19feefa commit cc66aab
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tethys_apps/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
[
re_path(
r"^apps/",
RedirectView.as_view(url=f""),
RedirectView.as_view(url=""),
name="app_library",
)
]
Expand All @@ -47,7 +47,6 @@
handler_url_patterns = harvester.get_handler_patterns(url_namespaces=url_namespaces)

# configure handler HTTP routes
## Nathan, what would be an example of these?
http_handler_patterns = []
for namespace, urls in handler_url_patterns["http_handler_patterns"].items():
root_pattern = r"^apps/{0}/".format(namespace.replace("_", "-"))
Expand All @@ -62,15 +61,14 @@
else:
root_pattern = ""
home_urls = [url for url in urls if url.name == "home"]
urlpatterns.append(
urlpatterns.append(
re_path(
r"",
include(home_urls[:1]),
name="home",
),
)



urlpatterns.append(
re_path(root_pattern, include((urls, namespace), namespace=namespace))
)
Expand Down

0 comments on commit cc66aab

Please sign in to comment.