Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
piphone
campaign
Commits
48d9f7a7
Commit
48d9f7a7
authored
Feb 11, 2019
by
Okhin
Browse files
Fixing the name of the CSV updater
parent
9a8b9984
Pipeline
#2430
failed with stages
in 1 minute and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
picampaign/importer/models.py
View file @
48d9f7a7
...
...
@@ -143,7 +143,7 @@ class Importer(models.Model):
# If it's a file, let's parse it according to our format.
if
self
.
kind
()
==
'file'
:
with
open
(
self
.
file
.
path
,
u
'rU'
)
as
f
:
if
self
.
category
==
'update
r
'
:
if
self
.
category
==
'update'
:
# If we're a csv format, let's use DictReader on a file object
reader
=
DictReader
(
f
)
for
item
in
reader
:
...
...
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