Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
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
humanities
gargantext
Commits
fcc2d56d
Commit
fcc2d56d
authored
Apr 20, 2016
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] sheduled function, still a bug.
parent
c3c98fda
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
pubmed.py
scrapers/pubmed.py
+5
-5
urls.py
scrapers/urls.py
+2
-2
No files found.
scrapers/pubmed.py
View file @
fcc2d56d
...
@@ -146,7 +146,7 @@ def save( request , project_id ) :
...
@@ -146,7 +146,7 @@ def save( request , project_id ) :
if
dwnldsOK
==
0
:
if
dwnldsOK
==
0
:
return
JsonHttpResponse
([
"fail"
])
return
JsonHttpResponse
([
"fail"
])
try
:
try
:
scheduled
(
parse_extract_indexhyperdata
)(
corpus_id
)
scheduled
(
parse_extract_indexhyperdata
(
corpus_id
)
)
except
Exception
as
error
:
except
Exception
as
error
:
print
(
'WORKFLOW ERROR'
)
print
(
'WORKFLOW ERROR'
)
print
(
error
)
print
(
error
)
...
...
scrapers/urls.py
View file @
fcc2d56d
...
@@ -40,6 +40,6 @@ urlpatterns = [ url(r'^pubmed/query$' , pubmed.query )
...
@@ -40,6 +40,6 @@ urlpatterns = [ url(r'^pubmed/query$' , pubmed.query )
,
url
(
r'^istex/save/(\d+)'
,
istex
.
save
)
,
url
(
r'^istex/save/(\d+)'
,
istex
.
save
)
# TODO
# TODO
#, url(r'^
cern
/query$' , cern.query )
#, url(r'^
scoap3
/query$' , cern.query )
#, url(r'^
cern
/save/(\d+)' , cern.save )
#, url(r'^
scoap3
/save/(\d+)' , cern.save )
]
]
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