mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 14:10:52 -07:00
Fix retrieving email msg id
This commit is contained in:
parent
0821c14aae
commit
f93e745f0b
1 changed files with 2 additions and 1 deletions
|
@ -168,7 +168,8 @@ def get_last_newsletter_email_msg_id(newsletter_id, notify_action):
|
|||
'WHERE newsletter_id = ? AND notify_action = ? AND success = 1 '
|
||||
'ORDER BY timestamp DESC LIMIT 1', [newsletter_id, notify_action])
|
||||
|
||||
return result.get('email_msg_id')
|
||||
if result:
|
||||
return result['email_msg_id']
|
||||
|
||||
|
||||
def get_newsletter(newsletter_uuid=None, newsletter_id_name=None):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue