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

Refactor attribute filtering in PlexObject class #1341

Merged
merged 2 commits into from Feb 17, 2024

Conversation

Dr-Blank
Copy link
Contributor

@Dr-Blank Dr-Blank commented Jan 16, 2024

Description

ref: #1302 (comment)

The changes optimize the code by using the filter function instead of a list comprehension.

Type of change

Please delete options that are not relevant.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated the docstring for new or existing methods
  • I have added tests when applicable

- minor performance imporvement
plexapi/base.py Outdated Show resolved Hide resolved
Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
@JonnyWong16 JonnyWong16 merged commit 41f6b9c into pkkid:master Feb 17, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants