Skip to content

Commit

Permalink
Merge pull request #49 from NatLibFi/feature/simplye-329/entrypoints
Browse files Browse the repository at this point in the history
Enable all entrypoints by default
  • Loading branch information
attemoi authored Apr 19, 2024
2 parents df1a7d7 + ba4075d commit dba547c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class EverythingEntryPoint(EntryPoint):
URI = "http://schema.org/CreativeWork"


EntryPoint.register(EverythingEntryPoint, "All")
EntryPoint.register(EverythingEntryPoint, "All", default_enabled=True)


class MediumEntryPoint(EntryPoint):
Expand Down Expand Up @@ -154,4 +154,4 @@ class AudiobooksEntryPoint(MediumEntryPoint):
URI = "http://bib.schema.org/Audiobook"


EntryPoint.register(AudiobooksEntryPoint, "Audiobooks")
EntryPoint.register(AudiobooksEntryPoint, "Audiobooks", default_enabled=True)
2 changes: 1 addition & 1 deletion tests/core/models/test_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def test_explain(self, db: DatabaseTransactionFixture):
-----------------------
website='http://library.com'
allow_holds='True'
enabled_entry_points='['Book']'
enabled_entry_points='['All', 'Book', 'Audio']'
featured_lane_size='15'
minimum_featured_quality='0.65'
facets_enabled_order='['author', 'title', 'added']'
Expand Down

0 comments on commit dba547c

Please sign in to comment.