Skip to content

Commit

Permalink
utils/zyte: quit using an alias for the client
Browse files Browse the repository at this point in the history
  • Loading branch information
tcurvelo authored and rennerocha committed May 10, 2022
1 parent 90df659 commit a57d7c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spidermon/contrib/scrapy/extensions.py
Expand Up @@ -171,7 +171,7 @@ def _run_suites(self, spider, suites):
runner.run(suite, **data)

def _generate_data_for_spider(self, spider):
from spidermon.utils.zyte import client as hs
from spidermon.utils.zyte import client

return {
"stats": self.crawler.stats.get_stats(spider),
Expand All @@ -180,5 +180,5 @@ def _generate_data_for_spider(self, spider):
else [],
"crawler": self.crawler,
"spider": spider,
"job": hs.job if hs.available else None,
"job": client.job if client.available else None,
}

0 comments on commit a57d7c6

Please sign in to comment.