Skip to content

Commit

Permalink
Fix empty rows bug with training spreadsheet
Browse files Browse the repository at this point in the history
  • Loading branch information
bjhardcastle committed Apr 10, 2024
1 parent 8b2950e commit 4738d88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/npc_lims/status/behavior_sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def get_sessions_from_training_db() -> dict[int, tuple[dict[str, Any], ...]]:
for row in db.execute(
f"SELECT * FROM '{subject}' WHERE ignore != 1"
).fetchall()
if row['start_time'] # ie not empty
)
return sessions

Expand Down

0 comments on commit 4738d88

Please sign in to comment.