Skip to content

Commit 217cf74

Browse files
author
Travis Wrightsman
authored
fix(grzctl): restrict detailed QC table to basic QC passed submissions (#444)
1 parent 108e383 commit 217cf74

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

  • packages/grzctl/src/grzctl/commands/db

packages/grzctl/src/grzctl/commands/db/tui.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,21 @@ async def load(self, database: SubmissionDb) -> None:
103103
class SubmissionCountByDetailedQCByLETable(Static):
104104
def on_mount(self) -> None:
105105
self.loading = True
106-
self.border_title = "Detailed QC by LE (Non-Test)"
106+
self.border_title = "Detailed QC by LE"
107+
self.border_subtitle = "not test & basic QC pass"
107108
self.styles.border = ("round", self.app.theme_variables["foreground"])
108109

109110
@textual.work
110111
async def load(self, database: SubmissionDb) -> None:
111112
self.loading = True
112113
with database._get_session() as session:
113-
statement = select( # type: ignore[type-var]
114-
Submission.submitter_id, Submission.submission_date, Submission.detailed_qc_passed
115-
).where(Submission.submission_type != SubmissionType.test)
114+
statement = (
115+
select( # type: ignore[type-var]
116+
Submission.submitter_id, Submission.submission_date, Submission.detailed_qc_passed
117+
)
118+
.where(Submission.submission_type != SubmissionType.test)
119+
.where(Submission.basic_qc_passed) # type: ignore[arg-type]
120+
)
116121
submission_qc_states = session.exec(statement).all()
117122

118123
today = datetime.date.today()

0 commit comments

Comments
 (0)