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

Build list of URLs simpler [refactor PR #179 for readability / maintainability] #180

Merged
merged 3 commits into from
Jun 11, 2024

Conversation

deldesir
Copy link
Collaborator

Replaces list comprehension. Makes code simpler.

@deldesir deldesir self-assigned this Jun 11, 2024
@deldesir deldesir added the enhancement New feature or request label Jun 11, 2024
@deldesir deldesir requested a review from holta June 11, 2024 16:56
@holta
Copy link
Member

holta commented Jun 11, 2024

Is this PR tested?

(Please validate/confirm similar to original PR... !)

@deldesir
Copy link
Collaborator Author

Tested on Ubuntu 24.04 (LRN2)

image

@holta holta merged commit a3de71b into iiab:master Jun 11, 2024
requested_urls = {}
for path, duration in rows:
if duration is not None and duration > 0:
requested_urls[path] = {"duration": duration};
Copy link
Member

Choose a reason for hiding this comment

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

requested_urls[path] = {"duration": duration};

@deldesir @codewiz is the trailing semicolon (above) truly necessary?

Copy link

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++

Copy link
Collaborator Author

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.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks:

b0adaa0

@holta holta changed the title Build list of URLs simpler Build list of URLs simpler [refactoring for readability / maintainability] Jun 11, 2024
@holta holta changed the title Build list of URLs simpler [refactoring for readability / maintainability] Build list of URLs simpler [refactor for readability / maintainability] Jun 11, 2024
@holta holta changed the title Build list of URLs simpler [refactor for readability / maintainability] Build list of URLs simpler [refactor PR #179 for readability / maintainability] Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants