From daee295609db8d9cdaaf5b8f8153204d70a382cb Mon Sep 17 00:00:00 2001
From: Miguel Angel Reina Ortega <miguelangel.reinaortega@etsi.org>
Date: Thu, 11 Jan 2024 08:19:43 +0100
Subject: [PATCH] Replace deprecated argument

---
 updateIndex.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/updateIndex.py b/updateIndex.py
index 9064977..74c513a 100644
--- a/updateIndex.py
+++ b/updateIndex.py
@@ -75,14 +75,14 @@ def updateIndex(args:argparse.Namespace) -> None:
         # Remove the element <li> for the document
         if args.documentLink is not None and args.documentName is not None:
             # Find the element to delete
-            element_to_delete = soup.find('li', text=args.documentName)
+            element_to_delete = soup.find('li', string=args.documentName)
             # Check if the element is found before attempting to delete it
             if element_to_delete:
                 # Remove the element from the HTML tree
                 element_to_delete.decompose()
             else:
                 print("Element not found.")
-    elif soup.find('li', text=args.documentName):
+    elif soup.find('li', string=args.documentName):
         print("'index.html' does already contain the entry")
     else:
         # Find document list
-- 
GitLab