Skip to content
Snippets Groups Projects
Commit b0390ff7 authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Harden a bit from_csv

parent bf8a0b8b
No related branches found
No related tags found
1 merge request!25Cache with materialized views
......@@ -78,7 +78,7 @@ class Command(BaseCommand):
with open(options['csv']) as csvfile:
csvreader = csv.reader(csvfile)
next(csvreader)
data = list(csvreader)
data = list(filter(None, csvreader))
logger.debug('Setting up Django')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "arkindex.project.settings")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment