From 61ca24cd187fe2e5daf9e1a733e34c5ee3743fc8 Mon Sep 17 00:00:00 2001 From: jcao219 Date: Tue, 2 Aug 2011 10:00:07 -0500 Subject: [PATCH] modified database table naming --- var.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/var.py b/var.py index d5a0adf..f4d9ea3 100644 --- a/var.py +++ b/var.py @@ -175,7 +175,7 @@ def add_away(clk): c.execute('INSERT into away VALUES (?)', (clk,)) def update_role_stats(clk, role, won, iwon): - role = role.replace(" ", "_")+'stats' + role = role.replace(" ", "_")+'_stats' with conn: c.execute(('CREATE TABLE IF NOT EXISTS {0} (id INTEGER PRIMARY KEY AUTOINCREMENT, '+ 'cloak TEXT UNIQUE, teamwins SMALLINT, individualwins SMALLINT, total SMALLINT)').format(role)) @@ -197,7 +197,7 @@ def update_role_stats(clk, role, won, iwon): def get_role_stats(clk, role): - role = role.replace(" ", "_")+'stats' + role = role.replace(" ", "_")+'_stats' with conn: c.execute(('CREATE TABLE IF NOT EXISTS {0} (id INTEGER PRIMARY KEY AUTOINCREMENT, '+ 'cloak TEXT UNIQUE, teamwins SMALLINT, individualwins SMALLINT, total SMALLINT)').format(role))