Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a new homepage element for Journals and HTML block. #1354

Merged
merged 4 commits into from
Nov 20, 2019

Conversation

ajrbyers
Copy link
Member

Closes #650

@ajrbyers ajrbyers requested a review from mauromsl November 20, 2019 10:23
Copy link
Member

@mauromsl mauromsl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice looks good now, added a couple of comments in line

@ajrbyers
Copy link
Member Author

See comments.


random.shuffle(journal_pks)
for i in range(0, 6):
sample_size = 6 if journals.count() > 6 else journals.count()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very minor: min(6, journals.count()) to avoid the double call to journals.count()

Copy link
Member

@mauromsl mauromsl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mauromsl mauromsl merged commit 5bf11a8 into master Nov 20, 2019
@mauromsl mauromsl deleted the 650-rando-journal-list branch November 20, 2019 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make randomizable list of journals in Huddersfield-style
2 participants