mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
Merge pull request #1223 from toyama0919/master
Fix: Alert: when hipchat Alert.name is multibyte character, occur error.
This commit is contained in:
@@ -36,7 +36,7 @@ class HipChat(BaseDestination):
|
||||
alert_url = '{host}/alerts/{alert_id}'.format(host=host, alert_id=alert.id);
|
||||
query_url = '{host}/queries/{query_id}'.format(host=host, query_id=query.id);
|
||||
|
||||
message = '<a href="{alert_url}">{alert_name}</a> changed state to {new_state} (based on <a href="{query_url}">this query</a>).'.format(
|
||||
message = u'<a href="{alert_url}">{alert_name}</a> changed state to {new_state} (based on <a href="{query_url}">this query</a>).'.format(
|
||||
alert_name=alert.name, new_state=new_state.upper(),
|
||||
alert_url=alert_url,
|
||||
query_url=query_url)
|
||||
|
||||
Reference in New Issue
Block a user