Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
manuq committed Jan 26, 2024
1 parent b878f65 commit cd1804e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions kolibri_explore_plugin/collectionviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,11 +833,9 @@ def get_all_collections_info(request):
"collections": [],
}
for sequence in COLLECTION_SEQUENCES:
collection_info = _get_collections_info_by_name_sequence(
name, sequence
)
if collection_info is not None:
collection_info["collections"].append(collection_info)
collection = _get_collections_info_by_name_sequence(name, sequence)
if collection is not None:
collection_info["collections"].append(collection)
info.append(collection_info)

return Response({"allCollectionsInfo": info})
Expand Down

0 comments on commit cd1804e

Please sign in to comment.