projects
/
zzz-pokedex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
43d857b
)
Fix a misuse of a set as a dictionary in db loading.
veekun-promotions/2011041102
author
Eevee
<git@veekun.com>
Mon, 11 Apr 2011 01:51:03 +0000
(18:51 -0700)
committer
Eevee
<git@veekun.com>
Mon, 11 Apr 2011 01:51:03 +0000
(18:51 -0700)
pokedex/db/load.py
patch
|
blob
|
history
diff --git
a/pokedex/db/load.py
b/pokedex/db/load.py
index
5740f42
..
d307fd8
100644
(file)
--- 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)
)
session.connection().execute(
insert_stmt.values(**row_data)
)
- seen_ids
[row_data['id']] = 1
+ seen_ids
.add(row_data['id'])
session.commit()
print_done()
session.commit()
print_done()