Skip to content

Commit

Permalink
Postel's law at work ..
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Feb 20, 2024
1 parent 4880747 commit 7830b74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions ceurws/ceur_ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,11 +404,12 @@ def recreate(self, progress: bool = False, limit=None):
invalid += 1
else:
loctime=volume.get_loctime()
loc_time_dict=loctime_parser.parse(loctime)
for key,value in loc_time_dict.items():
attr=f"loc_{key}"
setattr(volume,attr,value)
volume.resolveLoctime()
if loctime:
loc_time_dict=loctime_parser.parse(loctime)
for key,value in loc_time_dict.items():
attr=f"loc_{key}"
setattr(volume,attr,value)
volume.resolveLoctime()
# update progress bar
if t is not None and volume.valid:
# print(f"{volume.url}:{volume.acronym}:{volume.desc}:{volume.h1}:{volume.title}")
Expand Down
2 changes: 1 addition & 1 deletion ceurws/indexparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def findVolume(self, volCount: int, startLine: int, expectedTr: int = 3, progres
if trCount == expectedTr:
trEndLine = self.find(lineNo + 1, self.trEndPattern)
if volCount % progress == 0:
print(f"Volume {volCount+1:4}: lines {trStartLine:6}-{trEndLine:6}")
print(f"volume count {volCount+1:4}: lines {trStartLine:6}-{trEndLine:6}")
return trStartLine, trEndLine
return None, None

Expand Down

0 comments on commit 7830b74

Please sign in to comment.