From 8997fd3d6c3bb57ef0fce0ab99cdf81bde4275ab Mon Sep 17 00:00:00 2001 From: Bryan Hilbert Date: Thu, 29 Feb 2024 17:23:33 -0500 Subject: [PATCH] Update query history block for partial conflict fix --- .../common_monitors/dark_monitor.py | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/jwql/instrument_monitors/common_monitors/dark_monitor.py b/jwql/instrument_monitors/common_monitors/dark_monitor.py index 29f317c55..d0a388abb 100755 --- a/jwql/instrument_monitors/common_monitors/dark_monitor.py +++ b/jwql/instrument_monitors/common_monitors/dark_monitor.py @@ -1021,18 +1021,18 @@ def run(self): .format(len(new_entries), instrument, aperture, self.readpatt, file_count_threshold)) monitor_run = False - # Update the query history - new_entry = {'instrument': instrument, - 'aperture': aperture, - 'readpattern': self.readpatt, - 'start_time_mjd': self.query_start, - 'end_time_mjd': self.query_end, - 'files_found': len(new_entries), - 'run_monitor': monitor_run, - 'entry_date': datetime.datetime.now()} - entry = self.query_table(**new_entry) - entry.save() - logging.info('\tUpdated the query history table') + # Update the query history + new_entry = {'instrument': instrument, + 'aperture': aperture, + 'readpattern': self.readpatt, + 'start_time_mjd': self.query_start, + 'end_time_mjd': self.query_end, + 'files_found': len(new_entries), + 'run_monitor': monitor_run, + 'entry_date': datetime.datetime.now()} + entry = self.query_table(**new_entry) + entry.save() + logging.info('\tUpdated the query history table') logging.info('Dark Monitor completed successfully.')