Skip to content

Commit

Permalink
Minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrondel committed Sep 16, 2024
1 parent 755a893 commit bca5858
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/lsst/consdb/pqserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,9 @@ def insert_flexible_metadata(
if dtype != type(value).__name__:
raise BadValueException(f"{dtype} value", value)

has_multi_column_primary_keys = instrument_tables.get_schema_version(instrument_l) >= Version("3.2.0")
has_multi_column_primary_keys = (
instrument_tables.get_schema_version(instrument_l) >= Version("3.2.0") and obs_type == "exposure"
)

with engine.connect() as conn:
for key, value in value_dict.items():
Expand Down

0 comments on commit bca5858

Please sign in to comment.