Skip to content

Commit

Permalink
lido: just two messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mokko committed Oct 22, 2023
1 parent 8524a58 commit 7eddd51
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions zml2lido/linkChecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from typing import Optional, Union

NSMAP = {"l": "http://www.lido-schema.org"}
relWorksMaxSize = 40000
relWorksMaxSize = 50000 # 40000 works pretty well
user, pw, baseURL = get_credentials()


Expand Down Expand Up @@ -148,9 +148,9 @@ def fixRelatedWorks(self):
else:
ISIL = self.ISIL_lookup(institution=verwInst.text)
ID.text = f"{ISIL}/{str(id_int)}"
print(f" relWork: {id_int}:{verwInst.text} -> {ISIL}")
print(f" relWork {id_int}: {verwInst.text} -> {ISIL}")
else:
# self.log(f" removing unpublic relWork")
self.log(f" removing unpublic relWork")
relWorkSet = ID.getparent().getparent().getparent()
relWorkSet.getparent().remove(relWorkSet)

Expand Down Expand Up @@ -313,8 +313,7 @@ def rmInternalLinks(self):
"""
SEEMS TO BE NO LONGER NEEDED!
Remove resourceSet whose linkResource point to internal links (i.e.
don't beginn with http).
Remove resourceSet whose linkResource point to internal links;
links are internal if they dont begin with "http", e.g.
"""
self.log("resourceSet: Removing sets with remaining internal links")
Expand Down

0 comments on commit 7eddd51

Please sign in to comment.