From e7d2c73a7974e51f73ba362403c43768a3c83396 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Mon, 10 Feb 2020 13:14:58 -0800 Subject: [PATCH] Timestamp errors --- inquisitor/error.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inquisitor/error.py b/inquisitor/error.py index cc807ed..dbddd84 100644 --- a/inquisitor/error.py +++ b/inquisitor/error.py @@ -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'] = '
{}
'.format(body)