]> git.xonotic.org Git - xonotic/xonstatdb.git/blobdiff - scripts/update_ranks.sql
Whoops, add the 32 game req.
[xonotic/xonstatdb.git] / scripts / update_ranks.sql
index 0b50125730f2997aa38d4eb17261390331576704..2fcd64ceda1bea871d184bcf3aa0a419f41c002a 100644 (file)
@@ -11,6 +11,7 @@ begin;
     select p.player_id, p.nick, pe.game_type_cd, pe.elo, rank() 
     over (partition by pe.game_type_cd order by pe.elo desc)
     from players p, player_elos pe
-    where p.player_id = pe.player_id;
+    where p.player_id = pe.player_id
+    and pe.games > 32;
 
 end;