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):
def kind(self):
if self.url is None and self.file.name is None:
return None
if self.url is not '':
if self.url is '':
return 'url'
else:
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