Skip to content

Commit 4c55508

Browse files
committed
Let scrapy.utils.serialize.ScrapyJSONEncoder do the serialization
1 parent 451c916 commit 4c55508

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scrapy_redis/pipelines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def process_item(self, item, spider):
2222

2323
def _process_item(self, item, spider):
2424
key = self.item_key(item, spider)
25-
data = self.encoder.encode(dict(item))
25+
data = self.encoder.encode(item)
2626
self.server.rpush(key, data)
2727
return item
2828

0 commit comments

Comments
 (0)