Fix a misuse of a set as a dictionary in db loading. veekun-promotions/2011041102
authorEevee <git@veekun.com>
Mon, 11 Apr 2011 01:51:03 +0000 (18:51 -0700)
committerEevee <git@veekun.com>
Mon, 11 Apr 2011 01:51:03 +0000 (18:51 -0700)
pokedex/db/load.py

index 5740f42..d307fd8 100644 (file)
@@ -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()