From 7e013a02d4d92ce15927503c6590ae2b0a3467d9 Mon Sep 17 00:00:00 2001 From: Patrick Huck Date: Mon, 16 Oct 2023 12:33:50 -0700 Subject: [PATCH] client: init attributes if dataframe --- mpcontribs-client/mpcontribs/client/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mpcontribs-client/mpcontribs/client/__init__.py b/mpcontribs-client/mpcontribs/client/__init__.py index ef088d9bf..9f3666364 100644 --- a/mpcontribs-client/mpcontribs/client/__init__.py +++ b/mpcontribs-client/mpcontribs/client/__init__.py @@ -2018,7 +2018,11 @@ def submit_contributions( logger.warning("storing structure properties not supported, yet!") del dct["properties"] elif is_table: - table = element if isinstance(element, Table) else Table(element) + table = element + if not isinstance(table, Table): + table = Table(element) + table.attrs = element.attrs + table._clean() dct = table.to_dict(orient="split") elif is_attachment: