Skip to content

Commit

Permalink
Remove erroneous quotation marks around primary_key_name
Browse files Browse the repository at this point in the history
  • Loading branch information
Vebop committed Oct 21, 2024
1 parent 3d20e0c commit 07354e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/consdb/pqserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 07354e1

Please sign in to comment.