diff options
Diffstat (limited to 'utils/test/result_collection_api')
-rw-r--r-- | utils/test/result_collection_api/opnfv_testapi/resources/handlers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/test/result_collection_api/opnfv_testapi/resources/handlers.py b/utils/test/result_collection_api/opnfv_testapi/resources/handlers.py index df920c48f..cc4a4c357 100644 --- a/utils/test/result_collection_api/opnfv_testapi/resources/handlers.py +++ b/utils/test/result_collection_api/opnfv_testapi/resources/handlers.py @@ -96,7 +96,8 @@ class GenericApiHandler(RequestHandler): code, message = error(data) raise HTTPError(code, message) - data.creation_date = datetime.now() + if self.table != 'results': + data.creation_date = datetime.now() _id = yield self._eval_db(self.table, 'insert', data.format()) if 'name' in self.json_args: resource = data.name |