cleanup keywords

This commit is contained in:
Trilarion
2020-12-14 00:30:41 +01:00
parent 8d66fe6533
commit 489adf0f88
533 changed files with 660 additions and 628 deletions

View File

@ -383,7 +383,7 @@ def extract_inactive_year(entry):
inactive_year = [x.value[len(phrase):] for x in state if x.startswith(phrase)]
assert len(inactive_year) <= 1
if inactive_year:
return inactive_year[0]
return int(inactive_year[0])
else:
return None