dont wrap data into Binary twice

This commit is contained in:
j 2011-10-29 14:08:38 +02:00
parent 8ba5b2097a
commit 8f826c4ac3

View file

@ -217,7 +217,7 @@ def _saveUrlCache(url, post_data, data, headers):
else: else:
compressed = 0 compressed = 0
data = sqlite3.Binary(data) data = sqlite3.Binary(data)
t = (url_hash, domain, url, post_data, json.dumps(headers), created, sqlite3.Binary(data), only_headers, compressed) t = (url_hash, domain, url, post_data, json.dumps(headers), created, data, only_headers, compressed)
c.execute(u"""INSERT OR REPLACE INTO cache values (?, ?, ?, ?, ?, ?, ?, ?, ?)""", t) c.execute(u"""INSERT OR REPLACE INTO cache values (?, ?, ?, ?, ?, ?, ?, ?, ?)""", t)
# Save (commit) the changes and clean up # Save (commit) the changes and clean up