]> de.git.xonotic.org Git - xonotic/xonstatdb.git/blobdiff - scripts/update_ranks.sql
Add table definitions.
[xonotic/xonstatdb.git] / scripts / update_ranks.sql
index 77c7c796ac1f986ed1f4548028533908e7ad060b..a985543a37f368fd034557a5dda2f863c974da76 100644 (file)
@@ -12,7 +12,8 @@ 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;
+    and p.active_ind = True
+    and pe.active_ind = True
+    and pe.games >= 32;
 
 end;