Merge pull request #773 from JonnyWong16/bugfix/auto_reload

Fix return value when using USER_DONT_RELOAD_FOR_KEYS
This commit is contained in:
JonnyWong16 2021-06-15 21:14:24 -07:00 committed by GitHub
commit 0f854b01ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View file

@ -26,7 +26,7 @@ lib/
pip-selfcheck.json
pyvenv.cfg
MANIFEST
venv/
# path for the test lib.
tools/plex

View file

@ -455,7 +455,7 @@ class PlexPartialObject(PlexObject):
# Check a few cases where we dont want to reload
if attr in _DONT_RELOAD_FOR_KEYS: return value
if attr in _DONT_OVERWRITE_SESSION_KEYS: return value
if attr in USER_DONT_RELOAD_FOR_KEYS: return
if attr in USER_DONT_RELOAD_FOR_KEYS: return value
if attr.startswith('_'): return value
if value not in (None, []): return value
if self.isFullObject(): return value