diff options
author | Helmut Grohne <helmut@subdivi.de> | 2013-07-20 14:11:45 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2013-07-20 14:11:45 +0200 |
commit | c1ce54094ba86c83144c71213ade32846e2db876 (patch) | |
tree | b06aa31d4aa89310097228c35dbdf5c2c6611add | |
parent | 302a3b17c5905ad9e1bc9c7c32857729c1dd41aa (diff) | |
download | debian-dedup-c1ce54094ba86c83144c71213ade32846e2db876.tar.gz |
another missing sqlalchemy.text wrapper
-rwxr-xr-x | update_sharing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/update_sharing.py b/update_sharing.py index f8300f6..1e1e06a 100755 --- a/update_sharing.py +++ b/update_sharing.py @@ -53,7 +53,7 @@ def main(): pkgdict = compute_pkgdict(rows) for row in rows: cid = row[1] - already = conn.scalar("SELECT cid FROM duplicate WHERE cid = :cid;", + already = conn.scalar(sqlalchemy.text("SELECT cid FROM duplicate WHERE cid = :cid;"), cid=cid) if not already: conn.execute(sqlalchemy.text("INSERT INTO duplicate (cid) VALUES (:cid);"), |