Commit d11c8051 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Fix: do not add an existing version in the index

parent 874796e8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -35,7 +35,8 @@ def updateIndex(args:argparse.Namespace) -> None:
                element_to_delete.decompose()
            else:
                print("Element not found.")

    elif soup.find('li', text=args.documentName):
        print("'index.html' does already contain the entry")
    else:
        # Find document list
        # Assume there's a list (<ul>) with id "document-list"