check for tourney rather than tourNo not to be none

This commit is contained in:
steffen123 2010-07-06 23:39:25 +02:00
parent e5cba5172d
commit f5c1fd4ed7

View File

@ -213,7 +213,7 @@ dealt whether they were seen in a 'dealt to' line
#Gametypes
self.dbid_gt = db.getGameTypeId(self.siteId, self.gametype)
if self.tourNo!=None:
if self.tourney!=None:
self.tourney=Tourney.Tourney(self.sitename, self.gametype, None, builtFrom="HHC-HH", hand=self)
self.tourney.tourneyTypeId = db.getTourneyTypeId(self.tourney)
db.commit()