From 07354e1353f97cdb0e90e3e29c44919c25d13ba0 Mon Sep 17 00:00:00 2001 From: Valerie Becker Date: Mon, 21 Oct 2024 11:34:30 -0700 Subject: [PATCH] Remove erroneous quotation marks around primary_key_name --- python/lsst/consdb/pqserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/lsst/consdb/pqserver.py b/python/lsst/consdb/pqserver.py index 5cdaed67..f5fafb03 100644 --- a/python/lsst/consdb/pqserver.py +++ b/python/lsst/consdb/pqserver.py @@ -781,7 +781,7 @@ def insert( primary_key = obs_id for primary_key_name in ("obs_id", "exposure_id", "visit_id"): if primary_key_name in valdict: - primary_key = valdict["primary_key_name"] + primary_key = valdict[primary_key_name] day_obs, seq_num = instrument_tables.get_day_obs_and_seq_num(instrument_l, primary_key) if "day_obs" not in valdict: @@ -862,7 +862,7 @@ def insert_multiple( primary_key = obs_id for primary_key_name in ("obs_id", "exposure_id", "visit_id"): if primary_key_name in valdict: - primary_key = valdict["primary_key_name"] + primary_key = valdict[primary_key_name] day_obs, seq_num = instrument_tables.get_day_obs_and_seq_num(instrument_l, primary_key) if "day_obs" not in valdict: