Use cleaner syntax in fillDefaultData

This commit is contained in:
Mika Bostrom 2009-09-21 15:31:19 +03:00
parent e54c45b7d1
commit 1351cd6dd9

View File

@ -1015,7 +1015,7 @@ class Database:
if self.backend == self.SQLITE:
c.execute("INSERT INTO TourneyTypes (id, siteId, buyin, fee) VALUES (NULL, 1, 0, 0);")
elif self.backend == self.PGSQL:
c.execute("insert into TourneyTypes values (0,1,0,0,0,'0','0',null,'0','0','0');")
c.execute("insert into TourneyTypes values (0,1,0,0,0,False,False,null,False,False,False);")
else:
c.execute("insert into TourneyTypes values (0,1,0,0,0,0,0,null,0,0,0);")