From a66741e7aeb6eff4ce269ca084223b7212ec6b50 Mon Sep 17 00:00:00 2001
From: Karel van Klink <karel.vanklink@geant.org>
Date: Mon, 29 Jul 2024 18:04:48 +0200
Subject: [PATCH] Rename validate_products to validate_geant_products in a
 helper method

---
 gso/services/subscriptions.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gso/services/subscriptions.py b/gso/services/subscriptions.py
index 97474c7a..ead378a7 100644
--- a/gso/services/subscriptions.py
+++ b/gso/services/subscriptions.py
@@ -192,13 +192,13 @@ def get_active_subscriptions_by_field_and_value(field_name: str, field_value: st
 
 
 def count_incomplete_validate_products() -> int:
-    """Count the number of incomplete validate_products processes.
+    """Count the number of incomplete validate_geant_products processes.
 
-    :return: The count of incomplete 'validate_products' processes.
+    :return: The count of incomplete 'validate_geant_products' processes.
     :rtype: int
     """
     return ProcessTable.query.filter(
-        ProcessTable.workflow_name == "validate_products",
+        ProcessTable.workflow_name == "validate_geant_products",
         ProcessTable.last_status != "completed",
     ).count()
 
-- 
GitLab