Is there a way to remove 'world' statistics from quakestats?
sedawkgrep opened this issue · comments
My buddy and I almost exclusively play 1v1, but even at the most extreme we never have more than five of us.
Is there a reasonably easy way to remove all the 'world' stats/categories?
Hi there. At the moment it's not possible. However it should be fairly easy to implement.
I'll see what I can do, but my time is quite limited these days...
I just realized while looking at the q3 source, that world represents deaths due to the environment (lava, slime, etc). I thought it was some holdover from a team-based match.
Don't waste your time with removing it.
Is there a way to contact you directly? I'd like to ask you a few questions about the database layout and some of the fields in various collections. While we're probably going to use your tool to get the stats into the db, we're going to be using our own little website (with map ratings, comments, etc.) and pull the stats from mongodb.
You can reach me via my username at either yahoo or gmail if you don't mind dropping me an email.
Thanks,
Andrew
Hey, actually yesterday I had a moment of time to clean up some dust and take a look into the source code.
You may want to take a look if this does the trick. From the other hand as you said world
in most cases represents death due to the env.
diff --git a/src/quakestats/dataprovider/analyzer/scores.py b/src/quakestats/dataprovider/analyzer/scores.py
index b5cb4e5..85d0175 100644
--- a/src/quakestats/dataprovider/analyzer/scores.py
+++ b/src/quakestats/dataprovider/analyzer/scores.py
@@ -52,6 +52,9 @@ class PlayerScores:
victim_id = player_kill.victim_id
mod = player_kill.mod
+ if killer_id == 'q3-world':
+ return
+
self.kills.append((game_time, killer_id, victim_id, mod))
# not self kill
Feel free to reach me directly via https://github.com/brabiega/quakestats/blob/master/setup.py#L35