Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SiCKRAGE
sickrage
Commits
bbbc6cbe
Commit
bbbc6cbe
authored
Oct 17, 2018
by
echel0n
Browse files
Fixed 'Notification' object has no attribute 'type' issue.
parent
9730121d
Changes
2
Hide whitespace changes
Inline
Side-by-side
changelog.md
View file @
bbbc6cbe
# 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
-
*
8b3319d - 2018-10-15: Release v9.3.94
-
*
47ce84c - 2018-10-16: Update .gitlab-ci.yml
...
...
sickrage/core/webserver/api.py
View file @
bbbc6cbe
...
...
@@ -1431,9 +1431,9 @@ class CMD_SiCKRAGEGetMessages(ApiCall):
def
run
(
self
):
messages
=
[]
for
cur_notification
in
sickrage
.
app
.
alerts
.
get_notifications
(
self
.
request
.
remote_ip
):
messages
.
append
({
"title"
:
cur_notification
.
title
,
"message"
:
cur_notification
.
message
,
"type"
:
cur_notification
.
type
})
messages
.
append
({
"title"
:
cur_notification
.
data
[
'
title
'
]
,
"message"
:
cur_notification
.
data
[
'
message
'
]
,
"type"
:
cur_notification
.
data
[
'
type
'
]
})
return
_responds
(
RESULT_SUCCESS
,
messages
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment