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
e0132b61
Commit
e0132b61
authored
Nov 13, 2014
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] sometimes row is None, why ?
parent
439d8929
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
urls.py
gargantext_web/urls.py
+1
-0
views.py
gargantext_web/views.py
+2
-1
No files found.
gargantext_web/urls.py
View file @
e0132b61
from
django.conf.urls
import
patterns
,
include
,
url
from
django.conf.urls
import
patterns
,
include
,
url
from
django.contrib
import
admin
from
django.contrib
import
admin
from
django.contrib.auth.views
import
login
from
gargantext_web.views
import
home
,
projects
,
project
,
corpus
from
gargantext_web.views
import
home
,
projects
,
project
,
corpus
from
gargantext_web.views
import
delete_project
,
delete_corpus
from
gargantext_web.views
import
delete_project
,
delete_corpus
...
...
gargantext_web/views.py
View file @
e0132b61
...
@@ -405,7 +405,8 @@ def send_csv(request, corpus_id):
...
@@ -405,7 +405,8 @@ def send_csv(request, corpus_id):
row
=
cursor
.
fetchone
()
row
=
cursor
.
fetchone
()
if
row
is
None
:
if
row
is
None
:
break
break
writer
.
writerow
([
row
[
0
]
+
'/'
+
row
[
1
]
+
'/'
+
row
[
2
]
,
str
(
row
[
3
])
])
if
row
[
0
]
is
not
None
and
row
[
1
]
is
not
None
and
row
[
2
]
is
not
None
and
row
[
3
]
is
not
None
:
writer
.
writerow
([
str
(
row
[
0
])
+
'/'
+
str
(
row
[
1
])
+
'/'
+
str
(
row
[
2
])
,
str
(
row
[
3
])
])
#dates['last']['day'] = documents.last().metadata['publication_day'])
#dates['last']['day'] = documents.last().metadata['publication_day'])
cursor
.
close
()
cursor
.
close
()
...
...
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