Skip to content

Commit

Permalink
separate db entries for batches
Browse files Browse the repository at this point in the history
  • Loading branch information
bhilbert4 committed Feb 29, 2024
1 parent d1ab2cd commit 1fd264b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions jwql/instrument_monitors/common_monitors/dark_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1111,9 +1111,8 @@ def run(self):
'run_monitor': monitor_run,
'entry_date': datetime.datetime.now()}

with engine.begin() as connection:
connection.execute(
self.query_table.__table__.insert(), new_entry)
entry = self.query_table(**new_entry)
entry.save()
logging.info('\tUpdated the query history table')
logging.info('NEW ENTRY: ')
logging.info(new_entry)
Expand Down

0 comments on commit 1fd264b

Please sign in to comment.