Skip to content

Commit

Permalink
Retrieve schemas for views.
Browse files Browse the repository at this point in the history
  • Loading branch information
ktlim committed Nov 4, 2024
1 parent 8e1f5fc commit b530fd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/consdb/pqserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def __init__(self):
self.timestamp_columns = dict()
for instrument in self.instrument_list:
md = sqlalchemy.MetaData(schema=f"cdb_{instrument}")
md.reflect(engine)
md.reflect(engine, views=True)
self.table_names.update([str(table) for table in md.tables])
self.schemas[instrument] = md
self.obs_id_column[instrument] = dict()
Expand Down

0 comments on commit b530fd4

Please sign in to comment.