Basically make this code redundant and convert the old DB when it is loaded for the first time:
|
# TODO: this should be handled in EventDatabase instead based on the DB |
|
# version |
|
def get_corrected_name(self, roleData): |
|
if "displayName" in roleData: |
|
show_name = roleData["displayName"] |
|
else: |
|
show_name = roleData["show_name"] |
|
return show_name |
Basically make this code redundant and convert the old DB when it is loaded for the first time:
operationbot/roleGroup.py
Lines 100 to 107 in 4a4d001