Skip to content

Commit

Permalink
Setting serializer by default (#18)
Browse files Browse the repository at this point in the history
Co-authored-by: Raymond Negron <raymond1242>
  • Loading branch information
raymond1242 authored Dec 20, 2022
1 parent cede407 commit e12a465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion estela_scrapy/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def spider_closed(self, spider, reason):
request_count=spider_stats.get("downloader/request_count", 0),
)

parser_stats = json.dumps(spider_stats, default=datetime_to_json)
parser_stats = json.dumps(spider_stats, default=str)
data = {
"jid": os.getenv("ESTELA_SPIDER_JOB"),
"payload": json.loads(parser_stats),
Expand Down

0 comments on commit e12a465

Please sign in to comment.