From 36fa8b7093fad758dbf143f5a196fa710d362b85 Mon Sep 17 00:00:00 2001 From: Eevee Date: Sun, 10 Apr 2011 18:51:03 -0700 Subject: [PATCH] Fix a misuse of a set as a dictionary in db loading. --- pokedex/db/load.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokedex/db/load.py b/pokedex/db/load.py index 5740f42..d307fd8 100644 --- a/pokedex/db/load.py +++ b/pokedex/db/load.py @@ -295,7 +295,7 @@ def load(session, tables=[], directory=None, drop_tables=False, verbose=False, s session.connection().execute( insert_stmt.values(**row_data) ) - seen_ids[row_data['id']] = 1 + seen_ids.add(row_data['id']) session.commit() print_done()