From 5617631cb0552c0d49d288b1d4785420ac86a9c8 Mon Sep 17 00:00:00 2001 From: Renzo Frigato <rfrigato@stanford.edu> Date: Wed, 6 Jan 2016 09:54:34 +0100 Subject: [PATCH] add type to files in reaper and container uploads --- api/core.py | 1 + api/handlers/listhandler.py | 1 + 2 files changed, 2 insertions(+) diff --git a/api/core.py b/api/core.py index bd5b6299..3be18434 100644 --- a/api/core.py +++ b/api/core.py @@ -130,6 +130,7 @@ class Core(base.RequestHandler): modified=modified, size=file_store.size, hash=file_store.hash, + type=file_store.filetype, unprocessed=True, tags=file_store.tags, metadata=file_store.metadata diff --git a/api/handlers/listhandler.py b/api/handlers/listhandler.py index 59bb7049..a051b170 100644 --- a/api/handlers/listhandler.py +++ b/api/handlers/listhandler.py @@ -363,6 +363,7 @@ class FileListHandler(ListHandler): 'name': file_store.filename, 'size': file_store.size, 'hash': file_store.hash, + 'type': file_store.filetype, 'created': file_datetime, 'modified': file_datetime, 'unprocessed': True -- GitLab