diff options
Diffstat (limited to 'src/commands/db.rs')
-rw-r--r-- | src/commands/db.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/commands/db.rs b/src/commands/db.rs index a296579..08ed6c8 100644 --- a/src/commands/db.rs +++ b/src/commands/db.rs @@ -461,6 +461,10 @@ fn jobs(conn_cfg: DbConnectionConfig<'_>, matches: &ArgMatches) -> Result<()> { sel = sel.filter(schema::endpoints::name.eq(ep_name)) } + if let Some(pkg_name) = matches.value_of("package") { + sel = sel.filter(schema::packages::name.eq(pkg_name)) + } + let data = sel .order_by(schema::jobs::id.desc()) // required for the --limit implementation .load::<(models::Job, models::Submit, models::Endpoint, models::Package)>(&conn)? |