|
|
@ -55,7 +55,10 @@ class MasterFilter: |
|
|
|
self.unrestricted_filter[name] = master |
|
|
|
self.unrestricted_filter[name] = master |
|
|
|
if aliases: |
|
|
|
if aliases: |
|
|
|
for alias, mid in aliases.items(): |
|
|
|
for alias, mid in aliases.items(): |
|
|
|
master = masters[mid] |
|
|
|
self.add_alias(alias, mid) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def add_alias(self, alias, master_id): |
|
|
|
|
|
|
|
master = self.masters[master_id] |
|
|
|
alias = romanize(alias) |
|
|
|
alias = romanize(alias) |
|
|
|
self.default_filter[alias] = master |
|
|
|
self.default_filter[alias] = master |
|
|
|
self.unrestricted_filter[alias] = master |
|
|
|
self.unrestricted_filter[alias] = master |
|
|
|