mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Fix bug where user refresh would fail under certain circumstances.
Move all user functions to it's own class.
This commit is contained in:
parent
fd3daae491
commit
c98a8865d6
9 changed files with 522 additions and 500 deletions
|
@ -20,12 +20,12 @@ import time
|
|||
|
||||
|
||||
def notify(stream_data=None, notify_action=None):
|
||||
from plexpy import datafactory
|
||||
from plexpy import users
|
||||
|
||||
if stream_data and notify_action:
|
||||
# Check if notifications enabled for user
|
||||
data_factory = datafactory.DataFactory()
|
||||
user_details = data_factory.get_user_friendly_name(user=stream_data['user'])
|
||||
user_data = users.Users()
|
||||
user_details = user_data.get_user_friendly_name(user=stream_data['user'])
|
||||
|
||||
if not user_details['do_notify']:
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue