]> de.git.xonotic.org Git - xonotic/xonstatdb.git/blobdiff - scripts/update_ranks.sql
Support deactivating players.
[xonotic/xonstatdb.git] / scripts / update_ranks.sql
index 2fcd64ceda1bea871d184bcf3aa0a419f41c002a..77c7c796ac1f986ed1f4548028533908e7ad060b 100644 (file)
@@ -12,6 +12,7 @@ begin;
     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
+    and p.active_ind = 'Y'
     and pe.games > 32;
 
 end;