本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
ArchiveTeam
/
http2irc
關注
12
收藏
0
複製
0
程式碼
問題
2
合併請求
0
版本發佈
0
Wiki
活動
瀏覽代碼
Handle message-less Grafana alerts
master
JustAnotherArchivist
3 年之前
父節點
e34772fb70
當前提交
c2803274d1
共有
1 個檔案被更改
,包括
4 行新增
和
1 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-1
contrib/modules/grafana.py
+ 4
- 1
contrib/modules/grafana.py
查看文件
@@ -3,4 +3,7 @@ import json
async def process(request):
obj = json.loads(await request.text())
return f'{obj["title"]} - {obj["message"]}'
if 'message' in obj:
return f'{obj["title"]} - {obj["message"]}'
else:
return obj['title']
Write
Preview
Loading…
取消
儲存