gameServer/OfficialServer/extdbinterface.hs
changeset 11579 d389ea7ca66f
parent 11575 db7743e2fad1
--- a/gameServer/OfficialServer/extdbinterface.hs	Sat Feb 27 18:02:24 2016 +0300
+++ b/gameServer/OfficialServer/extdbinterface.hs	Sat Feb 27 18:15:53 2016 +0300
@@ -64,7 +64,7 @@
 
 dbQueryReplayFilename = "SELECT filename FROM achievements WHERE id = ?"
 
-dbQueryBestTime = "SELECT MIN(value) FROM achievements WHERE location = ?"
+dbQueryBestTime = "SELECT MIN(value) FROM achievements WHERE location = ? AND id <> (SELECT MAX(id) FROM achievements)"
 
 dbInteractionLoop dbConn = forever $ do
     q <- liftM read getLine