Skip to content

Casting mutliple Match() as Matches() strips the rank property from each Match()` #9

@ReagentX

Description

@ReagentX
match_stats = [[Match([{Player(6667): GaussianRating(25.0, 8.333)}, {Player(4991): GaussianRating(25.0, 8.333)}], rank=[1, 2])], [Match([{Player(6615): GaussianRating(25.0, 8.333)}, {Player(7557): GaussianRating(25.0, 8.333)}], rank=[1, 2])]]

Cast match_stat as Matches():

Matches(match_stats)

This results in:

 [Match([{Player(6667): GaussianRating(25.0, 8.333)}, {Player(4991): GaussianRating(25.0, 8.333)}]), Match([{Player(6615): GaussianRating(25.0, 8.333)}, {Player(7557): GaussianRating(25.0, 8.333)}])]

As a result, using calculator will result in AttributeError: Match does not have a ranking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions