mirror of https://github.com/scrapy/scrapy.git
Fixed documentation example
This commit is contained in:
parent
6c858cec91
commit
b1cb007b3b
|
|
@ -122,7 +122,7 @@ Example::
|
|||
class ProductXmlExporter(XmlItemExporter):
|
||||
|
||||
def serialize_field(self, field, name, value):
|
||||
if field == 'price':
|
||||
if name == 'price':
|
||||
return f'$ {str(value)}'
|
||||
return super().serialize_field(field, name, value)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue