Skip to content

Commit

Permalink
Merge pull request #48 from lsst-dm/tickets/DM-46556-alembic-hotfix
Browse files Browse the repository at this point in the history
Remove erroneous quotation marks around primary_key_name
  • Loading branch information
Vebop authored Oct 21, 2024
2 parents 3d20e0c + 07354e1 commit d07190b
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 d07190b

Please sign in to comment.