Skip to content

Commit

Permalink
run black on updated code
Browse files Browse the repository at this point in the history
  • Loading branch information
jamalex committed May 22, 2020
1 parent 6422761 commit dabc4a1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion kolibri/core/content/management/commands/scanforcontent.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ def handle(self, *args, **options):
channel_import_mode = options["channel_import_mode"]
channels_to_include = options["channels"]

storage_channel_ids = get_channel_ids_for_content_dirs(get_all_content_dir_paths())
storage_channel_ids = get_channel_ids_for_content_dirs(
get_all_content_dir_paths()
)
database_channel_ids = list(
ChannelMetadata.objects.all().values_list("id", flat=True)
)
Expand Down
4 changes: 3 additions & 1 deletion kolibri/core/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,6 @@
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

content_dirs = [paths.get_content_dir_path()] + paths.get_content_fallback_paths()
urlpatterns += static(paths.get_content_url("/"), view=static_serve_with_fallbacks(content_dirs))
urlpatterns += static(
paths.get_content_url("/"), view=static_serve_with_fallbacks(content_dirs)
)
6 changes: 5 additions & 1 deletion kolibri/utils/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,11 @@ def _expand_paths(basepath, pathdict):
elif isinstance(path, list):
pathdict[key] = [_expand_path(basepath, p) for p in path]
else:
raise Exception("Paths must be a single string or a semicolon-delimited list, not {}".format(type(path)))
raise Exception(
"Paths must be a single string or a semicolon-delimited list, not {}".format(
type(path)
)
)


def update_options_file(section, key, value, KOLIBRI_HOME, ini_filename="options.ini"):
Expand Down

0 comments on commit dabc4a1

Please sign in to comment.