From d0375a88aa672144e778c3d18ba151e60f7741bf Mon Sep 17 00:00:00 2001 From: zsloan Date: Thu, 21 Sep 2023 19:07:15 +0000 Subject: Fix the way id_ is accessed from existing_publication --- wqflask/wqflask/metadata_edits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wqflask/wqflask/metadata_edits.py b/wqflask/wqflask/metadata_edits.py index 0f7d33bd..9caccd3c 100644 --- a/wqflask/wqflask/metadata_edits.py +++ b/wqflask/wqflask/metadata_edits.py @@ -339,7 +339,7 @@ View the diffs here", "success") update_cross_reference(conn, dataset_id, name, - {"publication_id": existing_publication.id_}) + {"publication_id": existing_publication['id_']}) else: updated_publications = update_publication( conn, {"id_": data_["old_id_"], **publication_}) -- cgit v1.2.3