diff --git a/src/aiidalab_qe/app/result/components/summary/model.py b/src/aiidalab_qe/app/result/components/summary/model.py index 37138c72d..2c8c403a3 100644 --- a/src/aiidalab_qe/app/result/components/summary/model.py +++ b/src/aiidalab_qe/app/result/components/summary/model.py @@ -132,7 +132,7 @@ def generate_report_text(self, report_dict): def generate_failure_report(self): """Generate a html for reporting the failure of the `QeAppWorkChain`.""" process_node = self.fetch_process_node() - if not process_node and process_node.exit_status: + if not (process_node and process_node.exit_status): return final_calcjob = self._get_final_calcjob(process_node) env = Environment() @@ -177,6 +177,8 @@ def _generate_report_parameters(self): "creation_time_relative": relative_time(qeapp_wc.ctime), "modification_time": format_time(qeapp_wc.mtime), "modification_time_relative": relative_time(qeapp_wc.mtime), + "structure_pk": initial_structure.pk, + "structure_uuid": initial_structure.uuid, "formula": initial_structure.get_formula(), "num_atoms": len(initial_structure.sites), "space_group": "{} ({})".format( diff --git a/src/aiidalab_qe/app/static/templates/workflow_list_summary.jinja b/src/aiidalab_qe/app/static/templates/workflow_list_summary.jinja index 4588d070c..99189cc06 100644 --- a/src/aiidalab_qe/app/static/templates/workflow_list_summary.jinja +++ b/src/aiidalab_qe/app/static/templates/workflow_list_summary.jinja @@ -25,8 +25,14 @@
-

Structure properties

+

Initial structure properties

-

Structure properties

+

Initial structure properties

+ + + + + + + + diff --git a/tests/test_result.py b/tests/test_result.py index b5932fdbb..59a727817 100644 --- a/tests/test_result.py +++ b/tests/test_result.py @@ -58,6 +58,8 @@ def test_summary_report(data_regression, generate_qeapp_workchain): "creation_time_relative", "modification_time", "modification_time_relative", + "structure_pk", + "structure_uuid", ): report_parameters.pop(key) data_regression.check(report_parameters)
Structure PK{{ structure_pk }}
Structure UUID{{ structure_uuid }}
Chemical formula {{ formula }}