diff options
Diffstat (limited to 'jfr_playoff/sql.py')
-rw-r--r-- | jfr_playoff/sql.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/jfr_playoff/sql.py b/jfr_playoff/sql.py index 1eac414..6903ab1 100644 --- a/jfr_playoff/sql.py +++ b/jfr_playoff/sql.py @@ -34,8 +34,9 @@ GROUP BY #db#.segments.tabl, #db#.segments.rnd ''' CURRENT_SEGMENT = ''' -SELECT LEAST(segmentsperround, segm+1) -FROM #db#.admin +SELECT MAX(segment) +FROM #db#.scores +WHERE #db#.scores.rnd = %s AND #db#.scores.contract IS NOT NULL ''' PREFIX = ''' |