From: Thomas Hochstein Date: Sun, 31 Oct 2010 20:34:04 +0000 (+0100) Subject: groupstats.pl: Refactor query handling. X-Git-Tag: 0.01~19 X-Git-Url: https://code.th-h.de/?p=usenet%2Fnewsstats.git;a=commitdiff_plain;h=6b95accbb4b71f0df106b89e6b91756fa9f591fa;hp=6b95accbb4b71f0df106b89e6b91756fa9f591fa groupstats.pl: Refactor query handling. Don't misuse variables: - Push other binding vars to (new) @Params instead of filling up @GroupList with things it wasn't meant for. - Replace generic @QueryPart by @QueryGroupList and @QueryThreshold, then build $WhereClause from that. - Don't use $OrderClause for setting level (more or less than x), use (new) $Level instead. Signed-off-by: Thomas Hochstein ---