Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions python/PiFinder/db/observations_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ def log_object(self, session_uuid, obs_time, catalog, sequence, solution, notes)
)
self.conn.commit()

# Update cache so filters reflect the new observation immediately
if (catalog, sequence) not in self.observed_objects_cache:
self.observed_objects_cache.append((catalog, sequence))

observation_id = self.cursor.execute(
"select last_insert_rowid() as id"
).fetchone()["id"]
Expand Down
1 change: 1 addition & 0 deletions python/PiFinder/ui/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ def record_object(self):
solution=self.shared_state.solution(),
notes=notes,
)
self.object.logged = True
self.reset_config()

def key_number(self, number: int):
Expand Down
Loading