Gregory Shikhman 7d72f4345a Fixed lineview to use a simple evaluator...
...when deciding whether or not to use the full table or not. It will
now almost always use the full table.
2009-07-03 01:26:00 +00:00

24 lines
619 B
Python

# $Id$
"""
Copyright (C) 2009 by Gregory Shikhman <cornmander@cornmander.com>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2
or at your option any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY.
See the COPYING file for more details.
"""
def count_eval(results):
total = 0
for result in results:
total += int(result[1])
return total
def simple_eval(results):
return len(results)