Skip to content

Commit

Permalink
Update query history block for partial conflict fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bhilbert4 committed Feb 29, 2024
1 parent 4654b51 commit 8997fd3
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions jwql/instrument_monitors/common_monitors/dark_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.')

Expand Down

0 comments on commit 8997fd3

Please sign in to comment.