Blackened

This commit is contained in:
jtc42 2020-01-06 15:00:48 +00:00
parent 585633020b
commit 829c58d3fb
6 changed files with 18 additions and 7 deletions

View file

@ -156,6 +156,8 @@ def find_extensions(extension_dir, module_name="extensions"):
extension_paths = glob.glob(os.path.join(extension_dir, "*.py"))
for extension_path in extension_paths:
extensions.extend(find_extensions_in_file(extension_path, module_name=module_name))
extensions.extend(
find_extensions_in_file(extension_path, module_name=module_name)
)
return extensions
return extensions

View file

@ -36,7 +36,10 @@ class ExtensionSchema(Schema):
view_rule = view_data["rule"]
# Make links dictionary if it doesn't yet exist
d[view_id] = {
"href": url_for(ExtensionListResource.endpoint, **view_kwargs, _external=True) + view_rule,
"href": url_for(
ExtensionListResource.endpoint, **view_kwargs, _external=True
)
+ view_rule,
**description_from_view(view_cls),
}