From d48594148a7c85c63db74cc683a5d277098c1868 Mon Sep 17 00:00:00 2001 From: Eliot Eikenberry Date: Wed, 2 Oct 2024 16:49:09 -0400 Subject: [PATCH] fix: correct this conditional (#48) * fix: correct this conditional * chore: remove print statement --- src/helpers/loki.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/loki.rs b/src/helpers/loki.rs index 9222d3e..c306ab0 100644 --- a/src/helpers/loki.rs +++ b/src/helpers/loki.rs @@ -724,7 +724,7 @@ fn sort_deploy_data(data: QueryResponse) -> HashMap> { for r in data.data.result { let env = r.stream.deployment_environment_name.unwrap().to_lowercase(); - if !prod_env_names.contains(&env) || env.starts_with("prod-") { + if !prod_env_names.contains(&env) && !env.starts_with("prod-") { continue; }