Skip to content

Commit

Permalink
Use cleaned_urls for extension rule expansion map
Browse files Browse the repository at this point in the history
  • Loading branch information
jtc42 committed May 18, 2020
1 parent 0dd7c50 commit 2e649d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/labthings/server/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def add_view(self, view_class, *urls, endpoint=None, **kwargs):
# Add view to private views dictionary
self._views[endpoint] = d
# Store the rule expansion information
for url in urls:
for url in cleaned_urls:
self._rules[url] = self._views[endpoint]

def on_register(self, function, args=None, kwargs=None):
Expand Down

0 comments on commit 2e649d7

Please sign in to comment.