Commit 50329de8 authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald

csv: new first column with "2" or "3" for python dialect

parent 88f019b7
......@@ -31,6 +31,7 @@ from twisted.internet.defer import succeed
from util import stack, gitHead
from log import logError, logWarning, logException, logDebug, m18n
from common import WINDS, Internal, IntDict, Debug, Options, unicodeString
from common import isPython3
from query import Query
from rule import Ruleset
from tile import Tile, elements
......@@ -886,8 +887,9 @@ class PlayingGame(Game):
resource.RUSAGE_SELF).ru_maxrss)
if Options.rounds:
self.csvTags.append('ROUNDS:%s' % Options.rounds)
row = [self.ruleset.name, Options.AI, gitHead(), str(self.seed),
','.join(self.csvTags)]
row = [self.ruleset.name, Options.AI,
gitHead(), '3' if isPython3 else '2',
str(self.seed), ','.join(self.csvTags)]
for player in sorted(self.players, key=lambda x: x.name):
row.append(player.name)
row.append(player.balance)
......
......@@ -43,9 +43,10 @@ from compat import Csv, CsvWriter
RULESETFIELD = 0
AIFIELD = 1
COMMITFIELD = 2
GAMEFIELD = 3
TAGSFIELD = 4
PLAYERSFIELD = 5
PYTHON23FIELD = 3
GAMEFIELD = 4
TAGSFIELD = 5
PLAYERSFIELD = 6
OPTIONS = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment