Skip to content

Commit 9cf974f

Browse files
committed
Small bug fix to table types.
1 parent 8f094e1 commit 9cf974f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ahl15-16/ahl15-16.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def GetArena2Num(sqldatacon, ArenaName):
274274
print("Creating "+leaguename+" Game Table.");
275275

276276
sqlcon.execute("DROP TABLE IF EXISTS "+leaguename+"Games");
277-
sqlcur.execute("CREATE TABLE "+leaguename+"Games(id INTEGER PRIMARY KEY, Date INTEGER, HomeTeam Text, AwayTeam Text, AtArena Text, TeamScorePeriods TEXT, TeamFullScore Text, ShotsOnGoal INTEGER, FullShotsOnGoal INTEGER, ShotsBlocked INTEGER, FullShotsBlocked INTEGER, NumberPeriods INTEGER, TeamWin Text, IsPlayOffGame INTEGER)");
277+
sqlcur.execute("CREATE TABLE "+leaguename+"Games(id INTEGER PRIMARY KEY, Date INTEGER, HomeTeam Text, AwayTeam Text, AtArena Text, TeamScorePeriods TEXT, TeamFullScore Text, ShotsOnGoal TEXT, FullShotsOnGoal TEXT, ShotsBlocked TEXT, FullShotsBlocked TEXT, NumberPeriods INTEGER, TeamWin Text, IsPlayOffGame INTEGER)");
278278
sqlcon.commit();
279279

280280
def MakeHockeyGame(sqldatacon, date, hometeam, awayteam, periodsscore, shotsongoal, atarena, isplayoffgame):

echl15-16/echl15-16.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def GetArena2Num(sqldatacon, ArenaName):
277277
print("Creating "+leaguename+" Game Table.");
278278

279279
sqlcon.execute("DROP TABLE IF EXISTS "+leaguename+"Games");
280-
sqlcur.execute("CREATE TABLE "+leaguename+"Games(id INTEGER PRIMARY KEY, Date INTEGER, HomeTeam Text, AwayTeam Text, AtArena Text, TeamScorePeriods TEXT, TeamFullScore Text, ShotsOnGoal INTEGER, FullShotsOnGoal INTEGER, ShotsBlocked INTEGER, FullShotsBlocked INTEGER, NumberPeriods INTEGER, TeamWin Text, IsPlayOffGame INTEGER)");
280+
sqlcur.execute("CREATE TABLE "+leaguename+"Games(id INTEGER PRIMARY KEY, Date INTEGER, HomeTeam Text, AwayTeam Text, AtArena Text, TeamScorePeriods TEXT, TeamFullScore Text, ShotsOnGoal TEXT, FullShotsOnGoal TEXT, ShotsBlocked TEXT, FullShotsBlocked TEXT, NumberPeriods INTEGER, TeamWin Text, IsPlayOffGame INTEGER)");
281281
sqlcon.commit();
282282

283283
def MakeHockeyGame(sqldatacon, date, hometeam, awayteam, periodsscore, shotsongoal, atarena, isplayoffgame):

nhl15-16/nhl15-16.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def GetArena2Num(sqldatacon, ArenaName):
277277
print("Creating "+leaguename+" Game Table.");
278278

279279
sqlcon.execute("DROP TABLE IF EXISTS "+leaguename+"Games");
280-
sqlcur.execute("CREATE TABLE "+leaguename+"Games(id INTEGER PRIMARY KEY, Date INTEGER, HomeTeam Text, AwayTeam Text, AtArena Text, TeamScorePeriods TEXT, TeamFullScore Text, ShotsOnGoal INTEGER, FullShotsOnGoal INTEGER, ShotsBlocked INTEGER, FullShotsBlocked INTEGER, NumberPeriods INTEGER, TeamWin Text, IsPlayOffGame INTEGER)");
280+
sqlcur.execute("CREATE TABLE "+leaguename+"Games(id INTEGER PRIMARY KEY, Date INTEGER, HomeTeam Text, AwayTeam Text, AtArena Text, TeamScorePeriods TEXT, TeamFullScore Text, ShotsOnGoal TEXT, FullShotsOnGoal TEXT, ShotsBlocked TEXT, FullShotsBlocked TEXT, NumberPeriods INTEGER, TeamWin Text, IsPlayOffGame INTEGER)");
281281
sqlcon.commit();
282282

283283
def MakeHockeyGame(sqldatacon, date, hometeam, awayteam, periodsscore, shotsongoal, atarena, isplayoffgame):

0 commit comments

Comments
 (0)