We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dc1fc9 commit 6bf0c83Copy full SHA for 6bf0c83
src/core/homepage_elements/journals/hooks.py
@@ -16,7 +16,7 @@ def get_random_journals():
16
17
sample_size = min(6, journals.count())
18
19
- return random.sample(set(journals), sample_size)
+ return random.sample(list(journals), sample_size)
20
21
22
def yield_homepage_element_context(request, homepage_elements):
src/core/homepage_elements/journals_and_html/hooks.py
@@ -20,7 +20,7 @@ def get_random_journals():
23
24
25
26
0 commit comments