From b82af79bb9da4c033e3891bba40e913e19393be3 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() -- 2.7.4