Commit 01bf2b2b authored by Andrii Marynets's avatar Andrii Marynets

Fix query condition on edit page

parent 65374cc1
......@@ -112,7 +112,7 @@ class EditJobView(UpdateView):
job.name = name
job.spider = spider
job.query = query
job.query = query if len(query) > 0 else None
job.scrap_old_news = scrap_old_news
if interval:
job.interval = interval
......
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