Commit 0ab2a23f authored by okhin's avatar okhin

Fixing the self.kind

parent 7c3d0a1a
...@@ -27,9 +27,9 @@ class Importer(models.Model): ...@@ -27,9 +27,9 @@ class Importer(models.Model):
'name': self.name} 'name': self.name}
def kind(self): def kind(self):
if self.url is None and self.file is None: if self.url is '' and self.file is None:
return None return None
if self.url is None: if self.url is '':
return 'file' return 'file'
else: else:
return 'url' return 'url'
...@@ -49,6 +49,7 @@ class Importer(models.Model): ...@@ -49,6 +49,7 @@ class Importer(models.Model):
For instance, the comittee of a MEP would be listed in a column named 'group:comittee', separated For instance, the comittee of a MEP would be listed in a column named 'group:comittee', separated
by columns. by columns.
""" """
import ipdb; ipdb.set_trace()
import_data = [] import_data = []
# First let's check what kind of importer are we running. # First let's check what kind of importer are we running.
# If it's a file, let's parse it according to our format. # If it's a file, let's parse it according to our format.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment