From 4f9b12f846e619abc334edcd13e2215dcc8f7b9b Mon Sep 17 00:00:00 2001 From: Lauri Himanen <lauri.himanen@aalto.fi> Date: Wed, 7 Dec 2016 14:15:19 +0200 Subject: [PATCH] Added ParseSuccess and parsing statistics to the function that prints the JSON footer. --- common/python/nomadcore/baseclasses.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/python/nomadcore/baseclasses.py b/common/python/nomadcore/baseclasses.py index 46ad33b..c80723d 100644 --- a/common/python/nomadcore/baseclasses.py +++ b/common/python/nomadcore/baseclasses.py @@ -352,7 +352,8 @@ class AbstractBaseParser(with_metaclass(ABCMeta, object)): self.backend.startedParsingSession(uri, self.parser_context.parser_info) def print_json_footer(self): - self.super_backend.fileOut.write("]]\n") + self.backend.finishedParsingSession("ParseSuccess", None) + self.super_backend.fileOut.write("]\n") @abstractmethod def parse(self): -- GitLab