aboutsummaryrefslogtreecommitdiffstats
path: root/python/handle_default.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/handle_default.py')
-rw-r--r--python/handle_default.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/handle_default.py b/python/handle_default.py
index 8ca423b7..95b8f28b 100644
--- a/python/handle_default.py
+++ b/python/handle_default.py
@@ -44,7 +44,7 @@ def create_newindices(recordslist, recovery, lastdate, conn):
d["cumulativeloss"] += (100 - recovery) * d["orig_weight"] / 100
d["lastdate"] = "infinity"
c.execute(insertstr, d)
- newids[r["basketid"]] = c.fetchone()[0]
+ newids[d["basketid"]] = c.fetchone()[0]
for oldid in newids.keys():
c.execute(updatestr, (lastdate, oldid))
conn.commit()