Commit a6119453 authored by Vasyl Bodnaruk's avatar Vasyl Bodnaruk

Add parameter for run spiders with fresh parameter

parent 0c9fe1f0
...@@ -69,5 +69,5 @@ class Service: ...@@ -69,5 +69,5 @@ class Service:
return response.read() return response.read()
def _run(self, job): def _run(self, job):
return self.api.schedule(PROJECT, job.spider.sp_name, query=job.query) return self.api.schedule(PROJECT, job.spider.sp_name, query=job.query, fresh=not job.scrap_old_news)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment