Skip to content
Snippets Groups Projects
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
Branches
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment