Skip to content

Commit

Permalink
Accommodate extra tables in training spreadsheets
Browse files Browse the repository at this point in the history
  • Loading branch information
bjhardcastle committed Nov 16, 2024
1 parent b1ffebc commit dff66c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/npc_lims/status/behavior_sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def get_sessions_from_training_db() -> dict[int, tuple[dict[str, Any], ...]]:
for table in db.execute(
"SELECT name FROM sqlite_master WHERE type='table'"
).fetchall()
if table["name"] not in ("sqlite_sequence", "all_mice")
if str(table["name"]).isnumeric()
)
for subject in subjects:
sessions[subject] = tuple(
Expand Down

0 comments on commit dff66c5

Please sign in to comment.