Total Complexity | 2 |
Total Lines | 9 |
Duplicated Lines | 0 % |
Coverage | 50% |
1 | 1 | from plugin.managers.core.base import Manager, Update |
|
9 | 1 | class UpdateBasicCredential(Update): |
|
10 | 1 | keys = ['password', 'token_plex'] |
|
11 | |||
12 | 1 | def from_dict(self, basic_credential, changes, save=True): |
|
13 | # Update `PlexBasicCredential` |
||
14 | if not super(UpdateBasicCredential, self).from_dict(basic_credential, changes, save=save): |
||
15 | return False |
||
16 | |||
17 | return True |
||
18 | |||
43 |