From 213ba8f122249e52830c185e97d51d3cba89382b Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Fri, 22 Aug 2008 14:40:35 +0000 Subject: One more schema evolution fix from Stousignant git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4889 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Reports/updatefix.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/Server/Reports/updatefix.py b/src/lib/Server/Reports/updatefix.py index dbcce6d08..dde330214 100644 --- a/src/lib/Server/Reports/updatefix.py +++ b/src/lib/Server/Reports/updatefix.py @@ -42,8 +42,8 @@ def _merge_database_table_entries(): entry_id = entries_map[key] else: find_cursor.execute("Select id from reports_entries where name=%s and kind=%s", key) - row = find_cursor.fetchone() - entry_id = row[0] + rowe = find_cursor.fetchone() + entry_id = rowe[0] insert_cursor.execute("insert into reports_entries_interactions \ (entry_id, interaction_id, reason_id, type) values (%s, %s, %s, %s)", (entry_id, row[3], row[2], row[4])) -- cgit v1.2.3-1-g7c22