diff --git a/app/main.py b/app/main.py index 2ff3ec2..c7bbfed 100644 --- a/app/main.py +++ b/app/main.py @@ -165,12 +165,14 @@ async def start(request): @routes.get(config.URL_PREFIX + 'history') async def history(request): - history = { 'done': [], 'queue': []} + history = { 'done': [], 'queue': [], 'pending': []} for _ ,v in dqueue.queue.saved_items(): history['queue'].append(v) for _ ,v in dqueue.done.saved_items(): history['done'].append(v) + for _ ,v in dqueue.pending.saved_items(): + history['pending'].append(v) return web.Response(text=serializer.encode(history))