-
Notifications
You must be signed in to change notification settings - Fork 52
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 random function to randomly distribute news entries #347
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't pass tests as the empty set, as random.choice([]) is an error
Yeah, Sorry |
I have checked your suggestion and tested it in my local environment this time. It works, sorry for random.choice() Co-authored-by: Falke Carlsen <11318702+falkecarlsen@users.noreply.github.com>
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the GitHub App Integration for your organization. Read more. @@ Coverage Diff @@
## next #347 +/- ##
==========================================
- Coverage 80.56% 80.51% -0.06%
==========================================
Files 32 32
Lines 2810 2812 +2
Branches 217 217
==========================================
Hits 2264 2264
- Misses 511 513 +2
Partials 35 35
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed unnecessary random.choice call on list of one elem.
Thanks
fixes #346