Commit bbbc6cbe authored by echel0n's avatar echel0n
Browse files

Fixed 'Notification' object has no attribute 'type' issue.

parent 9730121d
# Changelog # Changelog
- * 4efb182 - 2018-10-16: Release v9.3.95 - * 4c87e58 - 2018-10-17: Fixed 'Notification' object has no attribute 'type' issue.
- * aad016d - 2018-10-16: Release v9.3.95
- * 0f07f4b - 2018-10-16: Fixed issue with checking for stash in output of git cmds Disabled creating docker tags for develop branch - * 0f07f4b - 2018-10-16: Fixed issue with checking for stash in output of git cmds Disabled creating docker tags for develop branch
- * 8b3319d - 2018-10-15: Release v9.3.94 - * 8b3319d - 2018-10-15: Release v9.3.94
- * 47ce84c - 2018-10-16: Update .gitlab-ci.yml - * 47ce84c - 2018-10-16: Update .gitlab-ci.yml
......
...@@ -1431,9 +1431,9 @@ class CMD_SiCKRAGEGetMessages(ApiCall): ...@@ -1431,9 +1431,9 @@ class CMD_SiCKRAGEGetMessages(ApiCall):
def run(self): def run(self):
messages = [] messages = []
for cur_notification in sickrage.app.alerts.get_notifications(self.request.remote_ip): for cur_notification in sickrage.app.alerts.get_notifications(self.request.remote_ip):
messages.append({"title": cur_notification.title, messages.append({"title": cur_notification.data['title'],
"message": cur_notification.message, "message": cur_notification.data['message'],
"type": cur_notification.type}) "type": cur_notification.data['type']})
return _responds(RESULT_SUCCESS, messages) return _responds(RESULT_SUCCESS, messages)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment