-
Notifications
You must be signed in to change notification settings - Fork 6
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
Build list of URLs simpler [refactor PR #179 for readability / maintainability] #180
Conversation
Co-authored-by: A Holt <[email protected]>
Is this PR tested? (Please validate/confirm similar to original PR... !) |
requested_urls = {} | ||
for path, duration in rows: | ||
if duration is not None and duration > 0: | ||
requested_urls[path] = {"duration": duration}; |
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.
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.
No, that was my mistake... I guess for doing too much C++
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.
No. I just removed it.
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.
Thanks:
Replaces list comprehension. Makes code simpler.