From 8f826c4ac3684c20562d03987a610910e77afb05 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 29 Oct 2011 14:08:38 +0200 Subject: [PATCH] dont wrap data into Binary twice --- ox/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox/cache.py b/ox/cache.py index 4c57d05..e47e515 100644 --- a/ox/cache.py +++ b/ox/cache.py @@ -217,7 +217,7 @@ def _saveUrlCache(url, post_data, data, headers): else: compressed = 0 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) # Save (commit) the changes and clean up