Add tags to error item

This commit is contained in:
Tim Van Baak 2019-12-17 09:49:19 -08:00
parent bb1719e0d6
commit 55214a117a
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,8 @@ def as_item(title, body=None):
'id': iid, 'id': iid,
'source': 'inquisitor', 'source': 'inquisitor',
'title': title, 'title': title,
'active': True,
'tags': ['inquisitor', 'error']
} }
if body is not None: if body is not None:
item['body'] = '<pre>{}</pre>'.format(body) item['body'] = '<pre>{}</pre>'.format(body)