Пример #1
0
def makeMatchFromDict(d):
    match = DataModel.Match(**d)
    if 'calculatedData' in d.keys():
        match.calculatedData = DataModel.CalculatedMatchData(
            **d['calculatedData'])
    return match
Пример #2
0
def makeMatchFromDict(d):
    match = DataModel.Match(**d)  #I have no idea why this works
    if 'calculatedData' in d.keys():
        match.calculatedData = DataModel.CalculatedMatchData(
            **d['calculatedData'])
    return match