Timestamp errors
This commit is contained in:
parent
7c03565242
commit
e7d2c73a79
|
@ -3,6 +3,7 @@ import logging
|
||||||
import json
|
import json
|
||||||
import random
|
import random
|
||||||
|
|
||||||
|
import timestamp
|
||||||
from configs import DUNGEON_PATH, logger
|
from configs import DUNGEON_PATH, logger
|
||||||
|
|
||||||
logger = logging.getLogger("inquisitor")
|
logger = logging.getLogger("inquisitor")
|
||||||
|
@ -14,7 +15,8 @@ def as_item(title, body=None):
|
||||||
'source': 'inquisitor',
|
'source': 'inquisitor',
|
||||||
'title': title,
|
'title': title,
|
||||||
'active': True,
|
'active': True,
|
||||||
'tags': ['inquisitor', 'error']
|
'created': timestamp.now(),
|
||||||
|
'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)
|
||||||
|
|
Loading…
Reference in New Issue