Skip to content

Question about tennisabstract.com (problem with US Open Stat) #20

@CalebNewcaslte

Description

@CalebNewcaslte

Hi there,

First of all, I just wanted to say I love your website—Tennis Abstract is an amazing project, and I really appreciate the work you’ve put into it!

However, I’m running into a problem while trying to explore US Open statistics. When I check the women’s tournament data for 2019, I get this error:

Traceback (most recent call last): File "/var/www/tennisabstract/cgi-bin/wtourney.cgi", line 1032, in match_row, _, _ = make_match_row(sm, rdict, pdict, tlev) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/tennisabstract/cgi-bin/wtourney.cgi", line 321, in make_match_row w2won = cxd((w2spw/w2sp) * 100, 1) + '%' ~~~~~^~~~~ ZeroDivisionError: float division by zero

When I check the men’s tournament data for 2019, I get this error:

Traceback (most recent call last): File "/var/www/tennisabstract/cgi-bin/tourney.cgi", line 638, in match_row, fem_row, fep_rows = make_match_row(sm, rdict, pdict, tlev) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/tennisabstract/cgi-bin/tourney.cgi", line 320, in make_match_row lace = cxd((la/float(lsp)) * 100, 1) + '%' ~~^~~~~~~~~~~ ZeroDivisionError: float division by zero

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