From b850a94367b04d6ec3c71be8e7e35747525e9651 Mon Sep 17 00:00:00 2001
From: Bernhard Mallinger <bernhard.mallinger@eox.at>
Date: Tue, 17 Sep 2024 15:50:46 +0200
Subject: [PATCH] Use actual harvesting url

---
 update_values/main.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/update_values/main.py b/update_values/main.py
index 7200ce6..0d66c66 100644
--- a/update_values/main.py
+++ b/update_values/main.py
@@ -160,7 +160,6 @@ def transform_values(
         ],
     }
 
-    # TODO urls
     values["harvester"]["config"]["harvesters"] |= {
         product_type.name: {
             "output": "queue",
@@ -168,7 +167,7 @@ def transform_values(
             "resource": {
                 "type": "OADS",
                 "oads": {
-                    "url": f"https://example3.com/oads/meta/{product_type.name}/index/",
+                    "url": product_type.harvesting_url,
                     "use_oads_ext": True,
                 },
             },
@@ -189,6 +188,7 @@ def transform_values(
             ],
         }
         for product_type in config_change.product_types
+        if product_type.harvesting_url
     }
 
 
-- 
GitLab