From 2881d27bd4cbdb80af5f4d2b476b9e85eab968a4 Mon Sep 17 00:00:00 2001 From: Edan Bainglass Date: Fri, 3 Jan 2025 09:17:25 +0000 Subject: [PATCH 1/5] Add structure pk --- src/aiidalab_qe/app/result/components/summary/model.py | 1 + .../app/static/templates/workflow_list_summary.jinja | 3 +++ .../app/static/templates/workflow_table_summary.jinja | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/src/aiidalab_qe/app/result/components/summary/model.py b/src/aiidalab_qe/app/result/components/summary/model.py index 37138c72d..8867f618a 100644 --- a/src/aiidalab_qe/app/result/components/summary/model.py +++ b/src/aiidalab_qe/app/result/components/summary/model.py @@ -177,6 +177,7 @@ 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, "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..4377ea03b 100644 --- a/src/aiidalab_qe/app/static/templates/workflow_list_summary.jinja +++ b/src/aiidalab_qe/app/static/templates/workflow_list_summary.jinja @@ -27,6 +27,9 @@

Structure properties