Timestamp errors

This commit is contained in:
Tim Van Baak 2020-02-10 13:14:58 -08:00
parent 7c03565242
commit e7d2c73a79
1 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@ import logging
import json
import random
import timestamp
from configs import DUNGEON_PATH, logger
logger = logging.getLogger("inquisitor")
@ -14,7 +15,8 @@ def as_item(title, body=None):
'source': 'inquisitor',
'title': title,
'active': True,
'tags': ['inquisitor', 'error']
'created': timestamp.now(),
'tags': ['inquisitor', 'error'],
}
if body is not None:
item['body'] = '<pre>{}</pre>'.format(body)