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
496cf235
Commit
496cf235
authored
May 03, 2016
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BUG] Redirect is not effective. Maybe create another function to get data and redirect.
parent
3338b390
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
istex.py
scrapers/istex.py
+10
-3
No files found.
scrapers/istex.py
View file @
496cf235
...
@@ -5,7 +5,7 @@ import threading
...
@@ -5,7 +5,7 @@ import threading
from
traceback
import
print_tb
from
traceback
import
print_tb
#from gargantext.settings import MEDIA_ROOT, BASE_DIR
#from gargantext.settings import MEDIA_ROOT, BASE_DIR
from
django.shortcuts
import
redirect
from
django.shortcuts
import
redirect
,
render
from
django.http
import
Http404
,
HttpResponseRedirect
,
HttpResponseForbidden
from
django.http
import
Http404
,
HttpResponseRedirect
,
HttpResponseForbidden
from
gargantext.constants
import
RESOURCETYPES
,
QUERY_SIZE_N_MAX
from
gargantext.constants
import
RESOURCETYPES
,
QUERY_SIZE_N_MAX
...
@@ -159,8 +159,15 @@ def save(request , project_id):
...
@@ -159,8 +159,15 @@ def save(request , project_id):
# sanitize session after interrupted transact
# sanitize session after interrupted transact
session
.
rollback
()
session
.
rollback
()
# --------------------------------------------
# --------------------------------------------
sleep
(
1
)
return
HttpResponseRedirect
(
'/projects/'
+
str
(
project_id
))
return
render
(
template_name
=
'pages/projects/wait.html'
,
request
=
request
,
context
=
{
'user'
:
request
.
user
,
'project'
:
project
,
},
)
data
=
[
query_string
,
query
,
N
]
data
=
[
query_string
,
query
,
N
]
...
...
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