Closed Darokrithia closed 5 years ago
History isn't that complex of a data structure. What we would need to do is form the regex tree as below
hist_sub = {"^holder" : None}
history = {... : ...,
"^\d+\.\d+\.\d+" : hist_sub
}
You just need to iterate over the dates (the reg keys), make sure they follow the date structure, and see if the hist dict inside contains a holder key.
Take a look at get_provs.py for an example with baronies.
So you can't currently see past rulers for counties. They are stored in a more complex data structure (history instead of previous) so we can either just leave it as is or rewrite the load data