Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
E
esi-table-data
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esi-data-scrapping
esi-table-data
Commits
0c3107b0
Commit
0c3107b0
authored
Jun 26, 2017
by
Vasyl Bodnaruk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug with csrf token
parent
5a2a3df7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
job_list.html
esi/templates/job_list.html
+1
-0
mobihealthnews.py
exa/exa/spiders/mobihealthnews.py
+1
-0
No files found.
esi/templates/job_list.html
View file @
0c3107b0
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
{% endblock %}
{% endblock %}
{% block content %}
{% block content %}
{% csrf_token %}
<div
class=
"loading"
>
<div
class=
"loading"
>
<div
class=
"loading-content"
><i
class=
"fa fa-refresh fa-spin"
></i></div>
<div
class=
"loading-content"
><i
class=
"fa fa-refresh fa-spin"
></i></div>
</div>
</div>
...
...
exa/exa/spiders/mobihealthnews.py
View file @
0c3107b0
...
@@ -21,6 +21,7 @@ class MobiHealthNewsSpider(scrapy.Spider):
...
@@ -21,6 +21,7 @@ class MobiHealthNewsSpider(scrapy.Spider):
if
self
.
condition
:
if
self
.
condition
:
print
(
self
.
condition
)
print
(
self
.
condition
)
self
.
query
+=
' or {}'
.
format
(
self
.
condition
)
self
.
query
+=
' or {}'
.
format
(
self
.
condition
)
print
(
self
.
query
)
self
.
comp
=
db
.
select
(
self
.
query
)
self
.
comp
=
db
.
select
(
self
.
query
)
super
(
MobiHealthNewsSpider
,
self
)
.
__init__
()
super
(
MobiHealthNewsSpider
,
self
)
.
__init__
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment