gbasood / vgstation-statistics-viewer

A statistics viewer for /vg/station, a Space Station 13 server.
http://stats.ss13.moe
MIT License
2 stars 6 forks source link

Player Deaths on Match History counts every single mob death #45

Closed DeityLink closed 3 years ago

DeityLink commented 6 years ago

I was wondering how 100 players could die in a round.

gbasood commented 6 years ago

models.py L134:

    def player_deaths(self):
        """
        Return all Death entries associated with this match, whose keys are not null, and are not manifested ghosts.
        """
        return self.deaths.filter(and_(Death.mindkey is not 'null', Death.mindkey is not None, Death.mindname != 'Manifested Ghost'))

Use the site/api/match/{ID} URL to investigate what the actual data is