Skip to content

Commit

Permalink
Don't use __main__.
Browse files Browse the repository at this point in the history
  • Loading branch information
ktlim authored Sep 11, 2024
1 parent da0582b commit 6b17211
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions python/lsst/consdb/pqserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,8 @@ def compute_wide_view_name(self, instrument: str, obs_type: str) -> str:
return view_name


if __name__ == "__main__":
engine = setup_postgres()
instrument_tables = InstrumentTables()
else:
instrument_tables = None
engine = setup_postgres()
instrument_tables = InstrumentTables()


##################
Expand Down

0 comments on commit 6b17211

Please sign in to comment.