Commit 0c3107b0 authored by Vasyl Bodnaruk's avatar Vasyl Bodnaruk

fix bug with csrf token

parent 5a2a3df7
......@@ -15,6 +15,7 @@
{% endblock %}
{% block content %}
{% csrf_token %}
<div class="loading">
<div class="loading-content"><i class="fa fa-refresh fa-spin"></i></div>
</div>
......
......@@ -21,6 +21,7 @@ class MobiHealthNewsSpider(scrapy.Spider):
if self.condition:
print(self.condition)
self.query += ' or {}'.format(self.condition)
print(self.query)
self.comp = db.select(self.query)
super(MobiHealthNewsSpider, self).__init__()
......
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