Commit ff1ca8d2 authored by Okhin's avatar Okhin

Getting a better kind detector

parent 8022545a
Pipeline #1193 failed with stages
in 46 seconds
...@@ -31,7 +31,7 @@ class Importer(models.Model): ...@@ -31,7 +31,7 @@ class Importer(models.Model):
def kind(self): def kind(self):
if self.url is None and is None: if self.url is None and is None:
return None return None
if self.url is not '': if self.url is '':
return 'url' return 'url'
else: else:
return 'file' return 'file'
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