diff options
Diffstat (limited to 'scripts/testdb.py')
-rw-r--r-- | scripts/testdb.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/testdb.py b/scripts/testdb.py index d8f3a146..f88af790 100644 --- a/scripts/testdb.py +++ b/scripts/testdb.py @@ -283,7 +283,7 @@ class allocation(object): cur.execute("DELETE FROM asn") cur.execute("DELETE FROM net") for kid in self.kids: - cur.execute("SELECT registrant_id FROM registrant WHERE IRBE_mapped_id = %s", kid.name) + cur.execute("SELECT registrant_id FROM registrant WHERE IRBE_mapped_id = %s", (kid.name,)) registrant_id = cur.fetchone()[0] for as_range in kid.resources.as: cur.execute("INSERT asn (start_as, end_as, registrant_id) VALUES (%s, %s, %s)", (as_range.min, as_range.max, registrant_id)) |